diff options
author | Christopher Faylor <me@cgf.cx> | 2011-05-05 04:31:22 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-05-05 04:31:22 +0400 |
commit | 5069a2b0d9533b36f55928728d1b1bffedc43545 (patch) | |
tree | 90744224ab7473d8a2999e8118cc81078b364278 /winsup/cygwin/sigproc.cc | |
parent | 942945956c3f9d027aeee47ce66ee5cc221a9e6f (diff) |
* signal.cc (_pinfo::kill): Return success on kill(0) only if pid exists or is
in PID_EXITED state. Report pid 0 when pid does not exist rather than pid -1.
Make debug output reflect actual function call.
* sigproc.cc (stopped_or_terminated): Set process state to reaped when we've
finished waiting for it.
* include/sys/cygwin.h (PID_REAPED): New enum.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 2d2db78a4..43655dc4c 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -1041,6 +1041,7 @@ stopped_or_terminated (waitq *parent_w, _pinfo *child) } else { + child->process_state = PID_REAPED; w->status = (__uint16_t) child->exitcode; add_rusage (&myself->rusage_children, &child->rusage_children); |