Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-14 08:39:56 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-14 08:39:56 +0400
commit5654f240f171d216e6c5676844a9f648abecbabc (patch)
tree75aace6a1ecdb6d463792fed066488e48bbe7355
parent25e40ae6aa4b51f08c60bab3d11bb28a9efc2847 (diff)
*** empty log message ***
-rw-r--r--winsup/cygwin/fork.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc
index b2f4d7c84..30fca7b2d 100644
--- a/winsup/cygwin/fork.cc
+++ b/winsup/cygwin/fork.cc
@@ -733,6 +733,7 @@ vfork ()
if (vf->pid < 0)
{
int exitval = -vf->pid;
+ vf->pid = 0;
if ((vf->pid = fork ()) == 0)
exit (exitval);
}