* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.
This commit is contained in:
parent
38b524b385
commit
0c8fe17278
|
@ -1,3 +1,7 @@
|
|||
2003-06-02 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.
|
||||
|
||||
2003-06-02 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* cygthread.h (cygthread::terminate_thread): Mark private.
|
||||
|
|
|
@ -800,9 +800,9 @@ spawn_guts (const char * prog_arg, const char *const *argv,
|
|||
reset_signal_arrived ();
|
||||
continue;
|
||||
case WAIT_OBJECT_0 + 2:
|
||||
if (myself->ppid_handle)
|
||||
if (my_parent_is_alive ())
|
||||
res |= EXIT_REPARENTING;
|
||||
if (!my_parent_is_alive ())
|
||||
else if (!myself->ppid_handle)
|
||||
{
|
||||
nwait = 2;
|
||||
sigproc_terminate ();
|
||||
|
|
Loading…
Reference in New Issue