break loop early if we know that there are at least two signals.

This commit is contained in:
David Xu 2006-12-25 03:00:15 +00:00
parent 5f2891aaa4
commit 016fa30228

View File

@ -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;
}
}