Pas besoin d'envoyer un signal, justement quand tu fais le exit dans
le fils, le kernel envoie le signal SIGCHLD au père.

Le 24/05/05, Frederic Beck<[EMAIL PROTECTED]> a écrit :
> Hello
> 
> Merci pour ces precisions, je ne comprennais pas a quoi correspondait le
> status 'Z', maintenant c bcp plus clair.
> 
> Du coup, lorsque le fils est fini j'envoie un signal au pere qui fait un
> wait et donc plus de processus zombi :)
> 
> Merci pour vos reponses !
> Fred
> 
> On Mon, 23 May 2005 17:58:32 +0200
> Jean-Damien Durand <[EMAIL PROTECTED]> wrote:
> 
> > Soit dans le pere tu fais (pas recommende):
> >
> > signal(SIGCHLD,SIG_IGN);
> >
> > ou tu catche le signal SIGCHLD et tu boucles sur waitpid - n'oublie de
> > regarder la man page de waitpid()...
> >
> > JD.
> >
> > On Monday 23 May 2005 17:00, Frederic Beck wrote:
> > FB > si je fais ps axf
> >
> > --
> > Jean-Damien Durand CERN/IT/FIO/DS - Geneva, Switzerland
> > PGP: http://home.cern.ch/~jdurand/public_key.asc
> > CERN CA: http://cern.ch/service-grid-ca/crt/root_crt.html
> > WWW: http://home.cern.ch/~jdurand
> 
> --
> Pensez à lire la FAQ de la liste avant de poser une question :
> http://wiki.debian.net/?DebianFrench
> 
> Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"
> 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
>

Répondre à