Re: Porting vfork()

Ulrich Drepper (drepper@cygnus.com)
08 Jan 1999 09:21:28 -0800


alan@lxorguk.ukuu.org.uk (Alan Cox) writes:

> So in theory its doable in glibc if anyone is feeling extremely clever

I don't think this is a good idea at all. There are too many programs
out there which are written incorrectly if vfork is defined this way.
You would break them just to allow a few other programs which are
_known_ and where the author is crazy enough to use this horrible
feature.

It would be much better to rewrite the function relying on the vfork
behaviour to use a thread for this. It's much cleaner and protable.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------

- 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/