Subject: Re: Zombie processes
To: None <netbsd-help@netbsd.org>
From: Matthias Buelow <mkb@mukappabeta.de>
List: netbsd-help
Date: 04/18/2001 00:52:08
davide+receptionist@cs.cmu.edu writes:

>> signal (SIGCHLD, child_signal_handler);
>
>Make sure you check that this works more than once... signal() is
>a deprecated interface function, and some implementations required
>you to re-specify the handler every time the signal was delivered,
>at least for certain signals.

BSD systems don't reset the handler, System V does (so it has
to be reinstalled every time in the handler).
One should use the POSIX sigaction(2) system call, which has
defined portable semantics.

--mkb