Date: Tue, 18 Jan 2000 18:20:56 -0800 From: "Scott Hess" <scott@avantgo.com> To: <keramida@ceid.upatras.gr> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Detecting when your parent process dies. Message-ID: <027701bf6223$d19c44c0$1e80000a@avantgo.com> References: <02f701bf610a$0c5fdec0$1e80000a@avantgo.com> <20000119033520.D57767@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
"Giorgos Keramidas" <charon@hades.hell.gr> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?027701bf6223$d19c44c0$1e80000a>