Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2000 15:12:55 +0200
From:      Giorgos Keramidas <charon@hades.hell.gr>
To:        Colin Campbell <sgcccdc@citec.qld.gov.au>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Detecting when your parent process dies.
Message-ID:  <20000120151255.B866@hades.hell.gr>
In-Reply-To: <Pine.LNX.4.10.10001200844140.18152-100000@guru.citec.qld.gov.au>
References:  <200001191814.TAA22396@dorifer.heim3.tu-clausthal.de> <Pine.LNX.4.10.10001200844140.18152-100000@guru.citec.qld.gov.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 20, 2000 at 08:45:16AM +1000, Colin Campbell wrote:
> 
> What about "polling" using getppid(). If the parent dies, the PPID
> will change (to 1?), will it not?

Yes, if the parent catches SIGCHLD, I think that this is the rule.  But
it's still polling...

-- 
Giorgos Keramidas, < keramida @ ceid . upatras . gr >
"Don't let your schooling interfere with your education." [Mark Twain]


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000120151255.B866>