* pinfo.cc (_pinfo::exists): Don't consider a process with no state to exist.

This commit is contained in:
Christopher Faylor 2012-08-23 14:45:52 +00:00
parent 918ed39f09
commit 95a94931c8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-08-23 Christopher Faylor <me.cygwin2012@cgf.cx>
* pinfo.cc (_pinfo::exists): Don't consider a process with no state to
exist.
2012-08-21 Christopher Faylor <me.cygwin2012@cgf.cx> 2012-08-21 Christopher Faylor <me.cygwin2012@cgf.cx>
* net.cc (get_adapters_addresses): Drop FIXME part of comment. * net.cc (get_adapters_addresses): Drop FIXME part of comment.

View File

@ -488,7 +488,7 @@ _pinfo::set_ctty (fhandler_termios *fh, int flags)
bool __stdcall bool __stdcall
_pinfo::exists () _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 bool