Replace usages of sigwait(3) with sigwaitinfo(2)

This is basically the same call, but it has the advantage of being
supported by FreeBSD's valgrind, which sigwait() is not.

References #1106.
This commit is contained in:
Tobias Brunner
2015-10-29 15:38:37 +01:00
parent c6aa606a65
commit 858148092d
9 changed files with 31 additions and 36 deletions
+1 -2
View File
@@ -117,14 +117,13 @@ void wait_sigint()
void wait_sigint()
{
sigset_t set;
int sig;
sigemptyset(&set);
sigaddset(&set, SIGINT);
sigaddset(&set, SIGTERM);
sigprocmask(SIG_BLOCK, &set, NULL);
sigwait(&set, &sig);
sigwaitinfo(&set, NULL);
}
#endif