]> sourceware.org Git - newlib-cygwin.git/commitdiff
* spawn.cc (spawnve): Remove vfork short circuit and let caller deal with error
authorChristopher Faylor <me@cgf.cx>
Fri, 26 Sep 2003 03:09:42 +0000 (03:09 +0000)
committerChristopher Faylor <me@cgf.cx>
Fri, 26 Sep 2003 03:09:42 +0000 (03:09 +0000)
return.

winsup/cygwin/ChangeLog
winsup/cygwin/spawn.cc

index 12804d04f77dd1c06e3fe8910724c80ad98c02ad..927147cf96af443975f75c814dd156885947fc37 100644 (file)
@@ -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>
 
index 8d2ab2df6e717c1a0744f6883a9d280825d0ecb0..d205c26bc177554cfa844ed5915abe7e08ff988c 100644 (file)
@@ -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;
This page took 0.034185 seconds and 5 git commands to generate.