[Top][All Lists]
[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
- [Chicken-users] Fwd: Re: process-wait, Jörg F . Wittenberger, 2011/09/02
- Re: [Chicken-users] Fwd: Re: process-wait, Jörg F . Wittenberger, 2011/09/02
- Re: [Chicken-users] Fwd: Re: process-wait, Jörg F . Wittenberger, 2011/09/02
- Re: [Chicken-users] Fwd: Re: process-wait, Jörg F . Wittenberger, 2011/09/03
- Re: [Chicken-users] Fwd: Re: process-wait,
John Cowan <=
- Re: [Chicken-users] Fwd: Re: process-wait, Alan Post, 2011/09/03
- Re: [Chicken-users] Fwd: Re: process-wait, Jörg F . Wittenberger, 2011/09/03
- [Chicken-users] chicken interupt handling, Jörg F . Wittenberger, 2011/09/04
- Re: [Chicken-users] chicken interupt handling, Felix, 2011/09/05
- Re: [Chicken-users] chicken interupt handling, Jörg F . Wittenberger, 2011/09/05
- Re: [Chicken-users] chicken interupt handling, John Cowan, 2011/09/05
- Re: [Chicken-users] chicken interupt handling, Jörg F . Wittenberger, 2011/09/08