* 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:
Christopher Faylor
2001-02-10 04:20:52 +00:00
parent 1e667f61b7
commit cde0c2fbca
4 changed files with 26 additions and 6 deletions

View File

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