break loop early if we know that there are at least two signals.
This commit is contained in:
parent
5f2891aaa4
commit
016fa30228
@ -286,7 +286,8 @@ sigqueue_get(sigqueue_t *sq, int signo, ksiginfo_t *si)
|
||||
if (ksiginfo_tryfree(ksi) && p != NULL)
|
||||
p->p_pendingcnt--;
|
||||
}
|
||||
count++;
|
||||
if (++count > 1)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user