From cde0c2fbcaac1f78efc607475f6f4bed37e25cfc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 10 Feb 2001 04:20:52 +0000 Subject: * 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. --- winsup/cygwin/sigproc.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/sigproc.cc') diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index ac1eaf59f..43be57e08 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -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, -- cgit v1.2.3