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
@ -131,7 +131,7 @@ tty_min::kill_pgrp (int sig)
|
||||
for (unsigned i = 0; i < pids.npids; i++)
|
||||
{
|
||||
_pinfo *p = pids[i];
|
||||
if (!p->exists () || p->ctty != ntty || p->pgid != pgid)
|
||||
if (!p || !p->exists () || p->ctty != ntty || p->pgid != pgid)
|
||||
continue;
|
||||
if (p == myself)
|
||||
killself = sig != __SIGSETPGRP && !exit_state;
|
||||
|
Reference in New Issue
Block a user