Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-05-05 18:46:14 +0400
committerChristopher Faylor <me@cgf.cx>2011-05-05 18:46:14 +0400
commit1395dac1d021fa42b0a5de32de91a076d1e6d58a (patch)
tree8ca3b8effb609c0a5dfc9aa0b2c38688ca768ef1 /winsup/cygwin/pinfo.cc
parent42a668f28a38a435f358e89aa60b11edbbe12373 (diff)
* pinfo.cc (_pinfo::exists): Check for PID_REAPED.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index c5309aeb1..4d7bc158d 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -428,7 +428,7 @@ _pinfo::set_ctty (tty_min *tc, int flags, fhandler_termios *arch)
bool __stdcall
_pinfo::exists ()
{
- return this && !(process_state & PID_EXITED);
+ return this && !(process_state & (PID_EXITED | PID_REAPED));
}
bool