Re: [AD] double signal hang fix |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> This fixes a possible hang when recovering from a fatal signal,
> and allegro_exit also fires such a one.
Makes sense, I'd say. What do you think about it, Peter?
> I'm not sure why it's needed, as the signal routine should have
> been unregistered after being called - maybe it's only unregistered
> after it has terminated, I'm not sure what POSIX says (if it's
> POSIX).
According to the man page, this is not clear and there are differences
between System V and BSD.
> Only tested with Linux console, so the QNX/X/DOS versions
> might be unnecessary/wrong/whatever.
I don't see why.
> (The hang is actually an infinite recursion, and my machine went
> on to crawling, I didn't wait for a OOM kill, which I guess would
> have happened).
Why not simply use abort()?
--
Eric Botcazou