Block the signals before the call to sigwait.

This commit is contained in:
Tobias Brunner
2010-01-12 11:52:03 +01:00
parent aa9eeb5deb
commit 776f59f7be
+1
View File
@@ -129,6 +129,7 @@ static void run(private_daemon_t *this)
sigaddset(&set, SIGINT);
sigaddset(&set, SIGHUP);
sigaddset(&set, SIGTERM);
sigprocmask(SIG_BLOCK, &set, NULL);
while (TRUE)
{