Bug 1274873 - Part 1: Change search order for free signal r=jld

This commit is contained in:
Julian Hector 2016-05-26 16:19:28 +02:00
parent 958ccb25fb
commit 1f2003d5b1

View File

@ -253,7 +253,7 @@ static const sock_fprog* gSetSandboxFilter;
static int
FindFreeSignalNumber()
{
for (int signum = SIGRTMIN; signum <= SIGRTMAX; ++signum) {
for (int signum = SIGRTMAX; signum >= SIGRTMIN; --signum) {
struct sigaction sa;
if (sigaction(signum, nullptr, &sa) == 0 &&