From f42f239a632306ed082f6fde878977248eea85cf Mon Sep 17 00:00:00 2001 From: Yves-Alexis Perez Date: Thu, 26 Nov 2015 15:26:42 +0100 Subject: Imported Upstream version 5.3.5 --- src/libfast/fast_dispatcher.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libfast') diff --git a/src/libfast/fast_dispatcher.c b/src/libfast/fast_dispatcher.c index b4c6ce3a6..66a2ee514 100644 --- a/src/libfast/fast_dispatcher.c +++ b/src/libfast/fast_dispatcher.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -389,7 +390,10 @@ METHOD(fast_dispatcher_t, waitsignal, void, sigaddset(&set, SIGTERM); sigaddset(&set, SIGHUP); sigprocmask(SIG_BLOCK, &set, NULL); - sigwaitinfo(&set, NULL); + while (sigwaitinfo(&set, NULL) == -1 && errno == EINTR) + { + /* wait for signal */ + } } METHOD(fast_dispatcher_t, destroy, void, -- cgit v1.2.3