aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-26 03:09:42 +0000
committerChristopher Faylor <me@cgf.cx>2003-09-26 03:09:42 +0000
commit177989407a3d1775148e1b56a54ad656f05d5004 (patch)
treeb1e4747518193e64ace9e4607d3f0b9ae98ed6ab
parent570be9788fa387f44cc775e775db747ea9698533 (diff)
downloadnewlib-177989407a3d1775148e1b56a54ad656f05d5004.zip
newlib-177989407a3d1775148e1b56a54ad656f05d5004.tar.gz
newlib-177989407a3d1775148e1b56a54ad656f05d5004.tar.bz2
* spawn.cc (spawnve): Remove vfork short circuit and let caller deal with error
return.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/spawn.cc4
2 files changed, 6 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 12804d0..927147c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-25 Christopher Faylor <cgf@redhat.com>
+
+ * spawn.cc (spawnve): Remove vfork short circuit and let caller deal
+ with error return.
+
2003-09-25 Pierre Humblet <pierre.humblet@ieee.org>
Christopher Faylor <cgf@redhat.com>
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 8d2ab2d..d205c26 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -977,9 +977,7 @@ spawnve (int mode, const char *path, const char *const *argv,
if (vf)
{
debug_printf ("longjmping due to vfork");
- if (ret < 0)
- vf->restore_exit (ret);
- else
+ if (ret > 0)
vf->restore_pid (ret);
}
break;