Re: [AD] double signal hang fix |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2003-06-27, Vincent <Vincent.Penquerch@xxxxxxxxxx> wrote:
> > I see. To protect against this, I think the signal handler should not
> > trust allegro_exit() to do what it is supposed to. The old signal
> > handlers (i.e. the ones that were present when allegro_init() was
> > called) should be restored by the signal handler itself,
> > before it calls
> > allegro_exit().
>
> Is it possible to call this while a signal is being processed by
> a handler installed by this same function ?
Do you mean, is it possible to change a signal's handler while the
handler is executing? Yes. Calling allegro_exit() from the signal
handler does that.
--
王浩禎