Mail Archives: cygwin-developers/1998/06/29/08:20:18
Date: Mon, 29 Jun 1998 00:39:24 -0700
From: schandra AT dlsun342 DOT us DOT oracle DOT com (Sashikanth Chandrasekaran)
vfork appears to be a simple wrapper over fork(). However, as per the
vfork man page, the child process uses the parent's memory. Your
implementation will obviously work when vfork is used as a faster fork
because it will yield the correct behavior. However, it is possible to
write a program that uses vfork that gives differeent results on unix
than on nt+cygwin32 library. Please let me know if my understanding is
correct.
Your understanding is basically correct.
However, use of vfork as anything other than a faster fork has always
been frowned upon. Most modern Unix systems use copy on write when
implementing fork, and implement vfork simply as fork. Using vfork as
anything other than a fast fork has never been portable, and there is
no reason for cygwin32 to emulate it.
Ian
- Raw text -