vfork()
Guy Harris
guy at auspex.auspex.com
Wed Mar 27 05:23:28 AEST 1991
>That is PARTLY right. vfork differs from fork in a way that it doesn't
>copy the complete process data range, so the child of a vfork can ONLY
>do an exec, execlp etc.
That's precisely what Doug was referring to; either the application
*doesn't* depend on the fact that, in most if not all current
implementations, "vfork()" causes the parent and child to temporarily
share an address space, in which case the original poster can just
replace the "vfork()" calls with "fork()", or it *does* depend on that,
in which case it will probably require a fair bit of rewhacking in order
to work....
(And if it does depend on that, the author of the application is hereby
asked "Didn't your 'vfork()' manual page tell you not to do that?
Berkeley's version of the 'vfork()' manual page sure as hell tells you
not to....")
More information about the Comp.unix.questions
mailing list