* 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:
Christopher Faylor
2004-12-27 17:19:25 +00:00
parent 933673e83b
commit 6e3c97b14e
3 changed files with 11 additions and 5 deletions

View File

@@ -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;