On Wed, 30 Mar 2005, zean zean wrote:
> while(childpid != wait(&status))
> Any aid to obtain the best way is very welcome.
If you are waiting for a specific child temrimatingin see 'waitpid(); (or
wait4() - "man wait4") -- that safes you the while() loop. It allows you
to listen for just the ch
On Wed, 2005-Mar-30 16:06:55 -0400, zean zean wrote:
>Dirk-Willem My idea is to avoid all the processes zombies. thanks by
>the recommendation.
If you just want to avoid zombies and don't care about the return
status, you can set SIGCHLD to SIG_IGN with SA_NOCLDWAIT (see
sigaction(2)) and not hav
On Wed, 2005-Mar-30 14:17:43 -0400, zean zean wrote:
>Excuse for my badly English. which is the best form to wait the
>finish of execution of a child.
That's virtually impossible to answer as a general case. The best
form depends on exactly what you want to do.
>My idea is:
&g
thanks to all by responding me so fast. Florent I will continue your counsels.
Dirk-Willem My idea is to avoid all the processes zombies. thanks by
the recommendation.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinf
Le Mercredi 30 mars 2005 à 10:25 -0800, Michael C. Shultz a écrit :
> On Wednesday 30 March 2005 10:17 am, zean zean wrote:
> > Hi Hackers:
> >
> > Excuse for my badly English. which is the best form to wait the
> > finish of execution of a child.
> >
>
Le Mercredi 30 mars 2005 à 14:17 -0400, zean zean a écrit :
> Hi Hackers:
>
> Excuse for my badly English. which is the best form to wait the
> finish of execution of a child.
It depends on the context of your program
(synchronous/asynchronous).
> My idea
On Wednesday 30 March 2005 10:17 am, zean zean wrote:
> Hi Hackers:
>
> Excuse for my badly English. which is the best form to wait the
> finish of execution of a child.
>
> My idea is:
>
> pid_t chilpid;
>
> while(childpid != wait(&status))
> ;
>
> Any
Hi Hackers:
Excuse for my badly English. which is the best form to wait the
finish of execution of a child.
My idea is:
pid_t chilpid;
while(childpid != wait(&status))
;
Any aid to obtain the best way is very welcome.
PD. Excuse my ignorance and I hope they can guide me.
Bye
8 matches
Mail list logo