* 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>
|
2003-06-02 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* cygthread.h (cygthread::terminate_thread): Mark private.
|
* cygthread.h (cygthread::terminate_thread): Mark private.
|
||||||
|
|
|
@ -800,9 +800,9 @@ spawn_guts (const char * prog_arg, const char *const *argv,
|
||||||
reset_signal_arrived ();
|
reset_signal_arrived ();
|
||||||
continue;
|
continue;
|
||||||
case WAIT_OBJECT_0 + 2:
|
case WAIT_OBJECT_0 + 2:
|
||||||
if (myself->ppid_handle)
|
if (my_parent_is_alive ())
|
||||||
res |= EXIT_REPARENTING;
|
res |= EXIT_REPARENTING;
|
||||||
if (!my_parent_is_alive ())
|
else if (!myself->ppid_handle)
|
||||||
{
|
{
|
||||||
nwait = 2;
|
nwait = 2;
|
||||||
sigproc_terminate ();
|
sigproc_terminate ();
|
||||||
|
|
Loading…
Reference in New Issue