🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #5890

Re: Llamada wait

#5890
From: Fernando Arbeiza
Date: Fri, 29 Aug 2003 15:30
21 lines
2092 bytes
On Fri, 29 Aug 2003 09:10:40 +0200, Fernando Arbeiza <arbeizaf@ono.com> wrote:
> On Fri, 29 Aug 2003 07:52:50 +0200, Fernando Arbeiza <arbeizaf@ono.com> wrote:
>>> S�, esa es una buena soluci�n, pero... �y los hijos que no son hijos 
>>> directos (hijos de los hijos y etc)?.
>> 
>> Creo que se puede hacer as�:
>> 
>>     � Llamar a setsid() desde el padre para convertirse en el l�der del
>>     grupo de procesos.
>>     � Llamar a waitpid() con el propio pid negatido; es decir, desde el
>>     padre, llamar algo equivalente a:
>>         waitpid(-getpid(), &status, 0);

Creo que no hace falta suponer; lo tenemos contestado aqu�:

    <URL: http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC26>

Un saludo.
-- 
Fernando Arbeiza        <URL: mailto:arbeizaf@ono.com>
Crea tu propio Linux:   <URL: http://www.escomposlinux.org/lfs-es>
Technical Details
Message-ID: <slrnbkusdj.hq.arbeizaf@jupiter.olimpo.homelinux.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!81-203-248-186.user.ono.COM!not-for-mail
References: <biim35$9fj1a$2@ID-97854.news.uni-berlin.de> <pan.2003.08.28.21.57.43.205314@eresmas.com> <bim5md$b4sjc$1@ID-97854.news.uni-berlin.de> <slrnbktqhi.pb.arbeizaf@jupiter.olimpo.homelinux.org> <slrnbktv3g.4sd.arbeizaf@jupiter.olimpo.homelinux.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,9e2a4d206494c726
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-08-29 08:41:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!81-203-248-186.user.ono.COM!not-for-mail
From: Fernando Arbeiza <arbeizaf@ono.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Llamada wait
Date: Fri, 29 Aug 2003 17:30:59 +0200
Lines: 21
Message-ID: <slrnbkusdj.hq.arbeizaf@jupiter.olimpo.homelinux.org>
References: <biim35$9fj1a$2@ID-97854.news.uni-berlin.de> <pan.2003.08.28.21.57.43.205314@eresmas.com> <bim5md$b4sjc$1@ID-97854.news.uni-berlin.de> <slrnbktqhi.pb.arbeizaf@jupiter.olimpo.homelinux.org> <slrnbktv3g.4sd.arbeizaf@jupiter.olimpo.homelinux.org>
NNTP-Posting-Host: 81-203-248-186.user.ono.com (81.203.248.186)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 1062171704 12145921 81.203.248.186 (16 [148301])
X-Orig-Path: jupiter.olimpo.homelinux.org!news
User-Agent: slrn/0.9.7.4 (Linux)