From: Roy Marples Date: Wed, 13 May 2015 01:12:47 +0000 (+0000) Subject: Ensure oldset is empty before sigprocmask call ... unsure why this is needed. X-Git-Tag: v6.9.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=785b477d69db193e7ff399fb09ff3a525160034e;p=thirdparty%2Fdhcpcd.git Ensure oldset is empty before sigprocmask call ... unsure why this is needed. --- diff --git a/eloop.c b/eloop.c index 091f3b8a..ed608f06 100644 --- a/eloop.c +++ b/eloop.c @@ -576,6 +576,8 @@ eloop_signal_mask(struct eloop *eloop, sigset_t *oldset) assert(eloop != NULL); sigfillset(&newset); + if (oldset) + sigemptyset(oldset); if (sigprocmask(SIG_SETMASK, &newset, oldset) == -1) return -1;