* pinfo.cc (_pinfo::exit): Beef up debugging output.
* sigproc.cc (proc_subproc): Detached children apparently need a ppid of 1.
This commit is contained in:
@@ -249,7 +249,7 @@ proc_subproc (DWORD what, DWORD val)
|
||||
case PROC_DETACHED_CHILD:
|
||||
if (vchild != myself)
|
||||
{
|
||||
vchild->ppid = myself->pid;
|
||||
vchild->ppid = what == PROC_DETACHED_CHILD ? 1 : myself->pid;
|
||||
vchild->uid = myself->uid;
|
||||
vchild->gid = myself->gid;
|
||||
vchild->pgid = myself->pgid;
|
||||
|
Reference in New Issue
Block a user