* sigproc.cc (proc_terminate): Avoid setting ppid to 1 if we're execing.
This commit is contained in:
parent
23771fa1f7
commit
e4257c7366
|
@ -1,3 +1,7 @@
|
||||||
|
2011-10-17 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
|
* sigproc.cc (proc_terminate): Avoid setting ppid to 1 if we're execing.
|
||||||
|
|
||||||
2011-10-15 Christopher Faylor <me.cygwin2011@cgf.cx>
|
2011-10-15 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* cygerrno.h (__set_errno): Modify debugging output to make searching
|
* cygerrno.h (__set_errno): Modify debugging output to make searching
|
||||||
|
|
|
@ -374,6 +374,14 @@ proc_terminate ()
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < nprocs; i++)
|
for (i = 0; i < nprocs; i++)
|
||||||
{
|
{
|
||||||
|
extern child_info_spawn *chExeced;
|
||||||
|
/* Don't reset the ppid to 1 if this pid is still going to be
|
||||||
|
associated with a process.
|
||||||
|
FIXME: The problem with this simplistic approach is that the
|
||||||
|
ppid for any surviving children will never be set to 1 in
|
||||||
|
this scenario. A potential fix would be to move procs into
|
||||||
|
cygheap but that would complicate startup. What else is new? */
|
||||||
|
if (!chExeced)
|
||||||
procs[i]->ppid = 1;
|
procs[i]->ppid = 1;
|
||||||
if (procs[i].wait_thread)
|
if (procs[i].wait_thread)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue