* pinfo.cc (_pinfo::exists): Don't consider a process with no state to exist.
This commit is contained in:
parent
918ed39f09
commit
95a94931c8
|
@ -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>
|
||||
|
||||
* net.cc (get_adapters_addresses): Drop FIXME part of comment.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue