aboutsummaryrefslogtreecommitdiffstats
path: root/src/libfast/fast_dispatcher.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-09-17 17:52:14 +0200
committerTobias Brunner <tobias@strongswan.org>2015-10-29 15:38:37 +0100
commit858148092d1ef755cd40fea0169259e4ad3e9f02 (patch)
tree850f6521d1e5247290f6e4f958a00a481f9f3389 /src/libfast/fast_dispatcher.c
parentc6aa606a659704d4a4855a6ab1f698fada9dd77e (diff)
downloadstrongswan-858148092d1ef755cd40fea0169259e4ad3e9f02.tar.bz2
strongswan-858148092d1ef755cd40fea0169259e4ad3e9f02.tar.xz
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.
Diffstat (limited to 'src/libfast/fast_dispatcher.c')
-rw-r--r--src/libfast/fast_dispatcher.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libfast/fast_dispatcher.c b/src/libfast/fast_dispatcher.c
index 4daf91905..b4c6ce3a6 100644
--- a/src/libfast/fast_dispatcher.c
+++ b/src/libfast/fast_dispatcher.c
@@ -383,14 +383,13 @@ METHOD(fast_dispatcher_t, waitsignal, void,
private_fast_dispatcher_t *this)
{
sigset_t set;
- int sig;
sigemptyset(&set);
sigaddset(&set, SIGINT);
sigaddset(&set, SIGTERM);
sigaddset(&set, SIGHUP);
sigprocmask(SIG_BLOCK, &set, NULL);
- sigwait(&set, &sig);
+ sigwaitinfo(&set, NULL);
}
METHOD(fast_dispatcher_t, destroy, void,