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:
@@ -563,7 +563,7 @@ int main(int argc, char *argv[])
|
||||
sigaddset(&set, SIGTERM);
|
||||
sigprocmask(SIG_BLOCK, &set, NULL);
|
||||
|
||||
while (sigwait(&set, &sig) == 0)
|
||||
while ((sig = sigwaitinfo(&set, NULL)) != -1)
|
||||
{
|
||||
switch (sig)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user