summaryrefslogtreecommitdiff
path: root/plugins/omprog/omprog.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-03-11 19:04:23 +0100
committerMichael Biebl <biebl@debian.org>2014-03-11 19:04:23 +0100
commit5fccf771f37973a2cea543fbdf1ed94ed9706faf (patch)
tree80b547300bfb6f1c8ffae16a8af9dea03c3fb75d /plugins/omprog/omprog.c
parent0c656246c6818b9fd0426411ed1cf926fbbc907d (diff)
downloadrsyslog-upstream/7.4.8.tar.gz
Imported Upstream version 7.4.8upstream/7.4.8
Diffstat (limited to 'plugins/omprog/omprog.c')
-rw-r--r--plugins/omprog/omprog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/omprog/omprog.c b/plugins/omprog/omprog.c
index 6926165..d821ff1 100644
--- a/plugins/omprog/omprog.c
+++ b/plugins/omprog/omprog.c
@@ -122,6 +122,7 @@ static void execBinary(instanceData *pData, int fdStdin)
{
int i;
struct sigaction sigAct;
+ sigset_t set;
char *newargv[] = { NULL };
char *newenviron[] = { NULL };
@@ -146,10 +147,12 @@ static void execBinary(instanceData *pData, int fdStdin)
/* reset signal handlers to default */
memset(&sigAct, 0, sizeof(sigAct));
- sigfillset(&sigAct.sa_mask);
+ sigemptyset(&sigAct.sa_mask);
sigAct.sa_handler = SIG_DFL;
for(i = 1 ; i < NSIG ; ++i)
sigaction(i, &sigAct, NULL);
+ sigemptyset(&set);
+ sigprocmask(SIG_SETMASK, &set, NULL);
alarm(0);