Re: Problems with the undead (zombies)
On Sun, 7 Jun 1998, Jason Gunthorpe wrote:
>
> 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.
Hmm... isn't signal(SIGCHLD,SIG_IGN) the best for this situation anyway?
--
Madarasz Gergely gorgo@caesar.elte.hu gorgo@linux.rulez.org
It's practically impossible to look at a penguin and feel angry.
Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
HuLUG: http://www.cab.u-szeged.hu/local/linux/
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: