[*] Always reset the sigaction mask (sigemptyset)
This commit is contained in:
parent
d81d4564e9
commit
fb287e6128
@ -42,7 +42,6 @@ namespace Aurora::Exit
|
||||
.sa_handler = SIG_DFL,
|
||||
.sa_flags = SA_ONSTACK
|
||||
};
|
||||
|
||||
sigemptyset(&action.sa_mask);
|
||||
|
||||
sigaction(SIGINT, &action, nullptr);
|
||||
|
@ -154,7 +154,6 @@ namespace Aurora::Grug
|
||||
return;
|
||||
}
|
||||
|
||||
//AU_LOCK_GUARD(gMutex);
|
||||
gCondVar->Signal();
|
||||
}
|
||||
|
||||
|
@ -337,6 +337,7 @@ namespace Aurora::Processes
|
||||
.sa_handler = SigChldHandler,
|
||||
.sa_flags = SA_ONSTACK
|
||||
};
|
||||
sigemptyset(&action.sa_mask);
|
||||
sigaction(SIGCHLD, &action, nullptr);
|
||||
}
|
||||
|
||||
@ -347,6 +348,7 @@ namespace Aurora::Processes
|
||||
.sa_handler = SIG_DFL,
|
||||
.sa_flags = SA_ONSTACK | SA_NOCLDWAIT
|
||||
};
|
||||
sigemptyset(&action.sa_mask);
|
||||
sigaction(SIGCHLD, &action, nullptr);
|
||||
|
||||
gRWLock.reset();
|
||||
|
@ -42,7 +42,7 @@ namespace Aurora::Threading::Primitives
|
||||
}
|
||||
else
|
||||
{
|
||||
struct timespec tspec, start;
|
||||
struct timespec tspec;
|
||||
Time::ms2tsabs(&tspec, timeout);
|
||||
|
||||
auto ret = pthread_cond_timedwait(&pthreadCv_, mutex, &tspec);
|
||||
|
Loading…
Reference in New Issue
Block a user