Article View: es.comp.os.linux.programacion
Article #12346Re: parentesco entre procesos
From: Ignacio Arenaza
Date: Thu, 02 Aug 2001 12:23
Date: Thu, 02 Aug 2001 12:23
29 lines
2045 bytes
2045 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "Eduard" == Eduard Garcia <eduardo.garcia2@upcnet.es> writes:
Eduard> hijo creado est� vivo, al cerrar la ventana xplot, el hijo
Eduard> muere y el programa padre se vuelve inestable no s� por
Eduard> qu�.
Porque al morir el hijo se le envia una se�al SIGCHLD al padre para
avisarle de tal evento. En teoria deberias usar wait o waitpid con las
opciones WNOHANG y WUNTRACED para evitar que el proceso padre se quede
bloqueado esperando, y asegurarte de llamarlas de forma periodica
hasta que detectes la muerte del hijo.
Saludos. I�aki.
- --
Get PGP/GPG Keys at http://www.escomposlinux.org/iarenaza/pgpkey.html
I use free software / Yo uso software libre
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt and GPG
iD8DBQE7aUY/ZXLnGT1HLgcRAjI+AJ4mUEmLzIQ7emBSU2H45FL9x7yAPwCff+bH
mi0fe0uyFqUppo5JB9XNgu4=
=QuAm
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<8766c6fy67.fsf@eb2ebu.ampr.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!eb2ebu.ampr.org!not-for-mailReferences:
<3B68BF10.D0D26BA7@upcnet.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,f77e857a2bc32edb X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2001-08-02 05:56:04 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!eb2ebu.ampr.org!not-for-mail From: Ignacio Arenaza <iarenaza@eb2ebu.ampr.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: parentesco entre procesos Date: 02 Aug 2001 14:23:28 +0200 Organization: Servidor NNTP de eb2ebu.ampr.org Lines: 29 Message-ID: <8766c6fy67.fsf@eb2ebu.ampr.org> References: <3B68BF10.D0D26BA7@upcnet.es> NNTP-Posting-Host: 62-37-127-34.dialup.uni2.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.wanadoo.es 996756588 21454 62.37.127.34 (2 Aug 2001 12:49:48 GMT) X-Complaints-To: usenet@wanadoo.es NNTP-Posting-Date: Thu, 2 Aug 2001 12:49:48 +0000 (UTC) User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7