From owner-freebsd-questions Tue Jan 18 19:22:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from bomber.avantgo.com (ws1.avantgo.com [207.214.200.194]) by hub.freebsd.org (Postfix) with ESMTP id BD30714E98 for ; Tue, 18 Jan 2000 19:22:29 -0800 (PST) (envelope-from scott@avantgo.com) Received: from river ([10.0.128.30]) by bomber.avantgo.com (Netscape Messaging Server 3.5) with SMTP id 239; Tue, 18 Jan 2000 18:18:20 -0800 Message-ID: <027701bf6223$d19c44c0$1e80000a@avantgo.com> From: "Scott Hess" To: Cc: References: <02f701bf610a$0c5fdec0$1e80000a@avantgo.com> <20000119033520.D57767@hades.hell.gr> Subject: Re: Detecting when your parent process dies. Date: Tue, 18 Jan 2000 18:20:56 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Giorgos Keramidas" wrote: > On Mon, Jan 17, 2000 at 08:43:57AM -0800, Scott Hess wrote: > | Is there any way for an rfork() process to detect if it's parent process > | has died? I mean via some sort of asynchronous notification? > > From the manpage of kill(2) we read: kill( pid, 0) tells me, if I know to ask, "Is this process alive." Unfortunately, the process I want to know that is going to be in a read(), or perhaps a select(). I could arrange for it to poll for the parent process death, but that's going to be fairly inefficient. I'm looking for the thing that corrosponds to SIGCHLD for child processes. Thanks, scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message