From: Tobias Brunner Date: Tue, 12 Jan 2010 10:52:03 +0000 (+0100) Subject: Block the signals before the call to sigwait. X-Git-Tag: 4.3.6~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=776f59f7be3792dde22a4d297ed79c443cde922f;p=thirdparty%2Fstrongswan.git Block the signals before the call to sigwait. --- diff --git a/src/charon/daemon.c b/src/charon/daemon.c index b9c06622b2..e71225fd11 100644 --- a/src/charon/daemon.c +++ b/src/charon/daemon.c @@ -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) {