Re: Porting vfork()

Kai Henningsen (kaih@khms.westfalen.de)
12 Jan 1999 00:25:00 +0200


kjahds@kjahds.com (Kenneth Albanowski) wrote on 08.01.99 in <Pine.LNX.3.93.990108162406.819S-100000@kjahds.kjahds.com>:

> On Fri, 8 Jan 1999, Linus Torvalds wrote:
>
> > > Make sure that the parent hasn't gone away in the meanwhile.
> >
> > It cannot - even if the parent goes away, p_pptr will just point to
> > another valid parent (ie init) instead. So it should always be safe to do
> > a "wakeup(&current->p_opptr->sleep)"
>
> Ah, I see, this being how init "inherits" tasks that lose their parent.
> Very clean.

Well, it seems to mean that init can't safely use vfork.

Not a great loss, but you need to know that.

MfG Kai

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/