Date: Wed, 19 Jan 2000 19:14:23 +0100 (CET) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-questions@FreeBSD.ORG Subject: Re: Detecting when your parent process dies. Message-ID: <200001191814.TAA22396@dorifer.heim3.tu-clausthal.de> In-Reply-To: <864juk$2uk0$1@atlantis.rz.tu-clausthal.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Scott Hess <scott@avantgo.com> wrote in list.freebsd-questions:
> I may not have been complete enough in my description. I'm using rfork()
> _without_ RFFDG or RFCFDG. This means that the parent and child share file
> descriptor tables. That means that the above fix won't work, because even
> if the parent process exits, the pipe will still be open on both ends (as
> long as one or more children live), so you'll never detect EOF.
>
> I suspect that this also means that most file descriptor based tricks won't
> work, because of the shared file descriptor table.
In that case, there is no other way except polling the PID
(which is not only inefficient, but also not reliable).
Regards
Oliver
--
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)
"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
(Terry Pratchett)
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?200001191814.TAA22396>
