diff options
author | Christopher Faylor <me@cgf.cx> | 2001-02-10 04:20:52 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-02-10 04:20:52 +0000 |
commit | cde0c2fbcaac1f78efc607475f6f4bed37e25cfc (patch) | |
tree | 6e60d15e6899611af43fe6f2ff618bf933bf5cc7 /winsup/cygwin/sigproc.cc | |
parent | 1e667f61b72db0e8ae2a0f7f037f1824c39aeaf3 (diff) | |
download | newlib-cde0c2fbcaac1f78efc607475f6f4bed37e25cfc.zip newlib-cde0c2fbcaac1f78efc607475f6f4bed37e25cfc.tar.gz newlib-cde0c2fbcaac1f78efc607475f6f4bed37e25cfc.tar.bz2 |
* 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.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index ac1eaf5..43be57e 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, |