[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: es signal handling bug on recent Linuces



> The linux manpage says:
> 
> NOTES
>        POSIX does not specify whether setjmp will save the signal
>        context. (In SYSV it will not.  In  BSD4.3  it  will,  and
>        there  is  a function _setjmp that will not.)  If you want
>        to save signal masks, use sigsetjmp.
> 
>        setjmp() and sigsetjmp make programs  hard  to  understand
>        and  maintain.  If possible an alternative should be used.
> 
> 
> Perhaps you need to use the sig* versions.  I haven't looked at the es
> code in eons, but I vaguely recall that rc having some sigsetjmp related
> changes proposed at some point.

This makes sense.  A lot of sense.  I'll probably recode to use
sigsetjmp very soon.

Thank you.

--p