Re: Problems with the undead (zombies)
On Sun, 7 Jun 1998, Brandon Mitchell wrote:
> More incentive to do it in a signal handler, tested code:
> void sig_handler (int i) {
> if (i == SIGCHLD) { /* signal based reaper */
> while (wait3(NULL, WNOHANG, 0) > 0);
> }
> }
The man pages do not say that wait is signal safe, putting it in a single
handler could nuke your program in some situations.
Jason
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: