cygwin: Remove comparison of 'this' to NULL in _pinfo::exists
Fix all callers.
This commit is contained in:
committed by
Corinna Vinschen
parent
5952d5f08f
commit
7212b571a5
@ -152,7 +152,8 @@ proc_can_be_signalled (_pinfo *p)
|
||||
bool __reg1
|
||||
pid_exists (pid_t pid)
|
||||
{
|
||||
return pinfo (pid)->exists ();
|
||||
pinfo p (pid);
|
||||
return p && p->exists ();
|
||||
}
|
||||
|
||||
/* Return true if this is one of our children, false otherwise. */
|
||||
@ -1135,7 +1136,7 @@ remove_proc (int ci)
|
||||
if (_my_tls._ctinfo != procs[ci].wait_thread)
|
||||
procs[ci].wait_thread->terminate_thread ();
|
||||
}
|
||||
else if (procs[ci]->exists ())
|
||||
else if (procs[ci] && procs[ci]->exists ())
|
||||
return true;
|
||||
|
||||
sigproc_printf ("removing procs[%d], pid %d, nprocs %d", ci, procs[ci]->pid,
|
||||
|
Reference in New Issue
Block a user