From 177989407a3d1775148e1b56a54ad656f05d5004 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 26 Sep 2003 03:09:42 +0000 Subject: * spawn.cc (spawnve): Remove vfork short circuit and let caller deal with error return. --- winsup/cygwin/spawn.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'winsup/cygwin/spawn.cc') diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 8d2ab2df6..d205c26bc 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; -- cgit v1.2.3