possible sigchld bug

Ben Lindstrom mouring at etoh.eviladmin.org
Tue Dec 23 07:30:31 EST 2003



On Mon, 22 Dec 2003, Mikulas Patocka wrote:

> > signals are not blocked during execution of handlers?
>
> On BSD and Linux glibc-2 yes. On SysV or Linux libc-5 no. (on these
> systems, signal handler is restored to default before entering handler
> function).
>
> You should use sigaction() instead of signal() if you want consistent
> behaviour on all systems.
>

Which we do.  Please review openbsd-compat/bsd-misc.c  Look at
'mysignal()' and realize that we #define signal() to mysignal() in
portable.  There is still a fall back to the old signal() interface for
older platforms like some SCO and NeXT.

So I think this is not really an issue.

- Ben




More information about the openssh-unix-dev mailing list