chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Fwd: Re: process-wait


From: John Cowan
Subject: Re: [Chicken-users] Fwd: Re: process-wait
Date: Sat, 3 Sep 2011 10:30:24 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

Jörg F. Wittenberger scripsit:

> But wait: Jules is right: somehow there needs to be some arrangement
> that there's a waitpid sure before the process exists on any other way
> to prevent zombies on the system.
>
> Does anyone have a suggestion how to assure that?

If the parent process calls sigaction() on SIGCHLD and set the sa_handler
to SIG_DFL and the sa_flags to SA_NOCLDWAIT, then its children will not
become zombies, but will just vanish. See
http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaction.html

-- 
La mayyitan ma qadirun yatabaqqa sarmadi                            John Cowan
Fa idha yaji' al-shudhdhadh fa-l-maut qad yantahi.              address@hidden
                --Abdullah al-Hazred, Al-`Azif      http://www.ccil.org/~cowan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]