1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165537

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