* fork.cc (fork_parent): Return EAGAIN when can't record pid.
* pinfo.h (pinfo::remember): Return value of call to proc_subproc. * sigproc.cc (proc_subproc): Return error if can't record pid.
This commit is contained in:
@ -246,7 +246,10 @@ proc_subproc (DWORD what, DWORD val)
|
||||
*/
|
||||
case PROC_ADDCHILD:
|
||||
if (nchildren >= PSIZE - 1)
|
||||
system_printf ("nchildren too large %d", nchildren);
|
||||
{
|
||||
rc = 0;
|
||||
break;
|
||||
}
|
||||
pchildren[nchildren] = vchild;
|
||||
hchildren[nchildren] = vchild->hProcess;
|
||||
if (!DuplicateHandle (hMainProc, vchild->hProcess, hMainProc, &vchild->pid_handle,
|
||||
|
Reference in New Issue
Block a user