Block the signals before the call to sigwait.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user