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/pinfo.h | |
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/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index dd49cd8..2be2623 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -18,7 +18,7 @@ enum __SIGOFFSET = 3 }; -#define PSIZE 1024 +#define PSIZE 63 #include <sys/resource.h> #include "thread.h" @@ -152,7 +152,7 @@ public: _pinfo *operator * () const {return procinfo;} operator _pinfo * () const {return procinfo;} // operator bool () const {return (int) h;} - void remember () {destroy = 0; proc_subproc (PROC_ADDCHILD, (DWORD) this);} + int remember () {destroy = 0; return proc_subproc (PROC_ADDCHILD, (DWORD) this);} HANDLE shared_handle () {return h;} }; |