diff options
author | Christopher Faylor <me@cgf.cx> | 2012-08-23 14:45:52 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-08-23 14:45:52 +0000 |
commit | 95a94931c8bb6a537dd5b6675d152742ea444504 (patch) | |
tree | 5c849a7bff61b5d9f391a22cda50f8049a25e1f3 /winsup/cygwin/pinfo.cc | |
parent | 918ed39f0969caa1f92ba09c0c33952b6cd02eb8 (diff) | |
download | cygnal-95a94931c8bb6a537dd5b6675d152742ea444504.tar.gz cygnal-95a94931c8bb6a537dd5b6675d152742ea444504.tar.bz2 cygnal-95a94931c8bb6a537dd5b6675d152742ea444504.zip |
* pinfo.cc (_pinfo::exists): Don't consider a process with no state to exist.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 6d8e41356..8ac58d097 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -488,7 +488,7 @@ _pinfo::set_ctty (fhandler_termios *fh, int flags) bool __stdcall _pinfo::exists () { - return this && !(process_state & (PID_EXITED | PID_REAPED | PID_EXECED)); + return this && process_state && !(process_state & (PID_EXITED | PID_REAPED | PID_EXECED)); } bool |