* spawn.cc (spawn_guts): Don't hang around if the parent doesn't exist.
This commit is contained in:
@@ -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 ();
|
||||||
|
Reference in New Issue
Block a user