* 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>
|
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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue