From owner-freebsd-questions Thu Jan 20 14:55:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 608A01539D for ; Thu, 20 Jan 2000 14:55:30 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from localhost.hell.gr (pat8.x-treme.gr [212.120.197.200]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id AAA15143; Fri, 21 Jan 2000 00:55:21 +0200 Received: (from charon@localhost) by localhost.hell.gr (8.9.3/8.9.3) id PAA00903; Thu, 20 Jan 2000 15:12:55 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Thu, 20 Jan 2000 15:12:55 +0200 From: Giorgos Keramidas To: Colin Campbell Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Detecting when your parent process dies. Message-ID: <20000120151255.B866@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <200001191814.TAA22396@dorifer.heim3.tu-clausthal.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E X-Phone-Number: +30-94-6203692, +30-93-2886457 X-Address: Theodorou Kirinaiou 61, 26334 Patra, Greece Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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