diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-01 20:54:22 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-01 20:54:22 +0000 |
commit | 488c7683e311fe19bb0c2d03e3a260ac9f95e86b (patch) | |
tree | af99406e50c4c9b97de29ca58ea00b150acaf9e9 /winsup/cygwin/sigproc.cc | |
parent | b13be6f6fb07be0120e0e3e8593ad2f9453a4764 (diff) | |
download | cygnal-488c7683e311fe19bb0c2d03e3a260ac9f95e86b.tar.gz cygnal-488c7683e311fe19bb0c2d03e3a260ac9f95e86b.tar.bz2 cygnal-488c7683e311fe19bb0c2d03e3a260ac9f95e86b.zip |
* sigproc.cc (proc_info): Rename proc_exists which takes a pid to "pid_exists".
* shared.h: Split out "child_info" stuff into a new header file and use where
necessary. Declare pid_exists.
* child_info.h: New file.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index f9f149851..55cde230e 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -20,6 +20,7 @@ details. */ #include "sync.h" #include "sigproc.h" #include "pinfo.h" +#include "child_info.h" #include "perthread.h" extern BOOL allow_ntsec; @@ -185,7 +186,7 @@ proc_can_be_signalled (_pinfo *p) } BOOL __stdcall -proc_exists (pid_t pid) +pid_exists (pid_t pid) { pinfo p (pid); return proc_exists (p); @@ -235,7 +236,7 @@ proc_exists (_pinfo *p) /* If the parent pid does not exist, clean this process out of the pinfo * table. It must have died abnormally. */ - if ((p->pid == p->ppid) || (p->ppid == 1) || !proc_exists (p->ppid)) + if ((p->pid == p->ppid) || (p->ppid == 1) || !pid_exists (p->ppid)) { p->hProcess = NULL; p->process_state = PID_NOT_IN_USE; @@ -390,7 +391,7 @@ proc_subproc (DWORD what, DWORD val) if (wval->pid <= 0) child = NULL; // Not looking for a specific pid - else if (!proc_exists (wval->pid)) /* CGF FIXME -- test that this is one of mine */ + else if (!pid_exists (wval->pid)) /* CGF FIXME -- test that this is one of mine */ goto out; // invalid pid. flag no such child wval->status = 0; // Don't know status yet |