djhill> Reading Advanced Programming in the UNIX Environment by Richard
djhill> W. Stevens, I see that he says that vfork() should be used instead
djhill> of fork() when you just need to use one of the exec() functions,
djhill> since it doesn't need to fully copy the address space.

djhill> Later in the book, he has an example system() which uses fork() to
djhill> run /bin/sh -c via the execl() function.

djhill> Why wouldn't he use vfork() instead of fork()?

If there is anything that modifies memory or file descripts between the
fork() and exec*() call, you can't use vfork().

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to