* spawn.cc (spawnve): Remove vfork short circuit and let caller deal with error
return.
This commit is contained in:
parent
570be9788f
commit
177989407a
@ -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>
|
2003-09-25 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
Christopher Faylor <cgf@redhat.com>
|
Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
@ -977,9 +977,7 @@ spawnve (int mode, const char *path, const char *const *argv,
|
|||||||
if (vf)
|
if (vf)
|
||||||
{
|
{
|
||||||
debug_printf ("longjmping due to vfork");
|
debug_printf ("longjmping due to vfork");
|
||||||
if (ret < 0)
|
if (ret > 0)
|
||||||
vf->restore_exit (ret);
|
|
||||||
else
|
|
||||||
vf->restore_pid (ret);
|
vf->restore_pid (ret);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user