Block the signals before the call to sigwait.
authorTobias Brunner <tobias@strongswan.org>
Tue, 12 Jan 2010 10:52:03 +0000 (11:52 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 12 Jan 2010 10:52:03 +0000 (11:52 +0100)
src/charon/daemon.c

index b9c0662..e71225f 100644 (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)
        {