diff options
Diffstat (limited to 'plugins/omprog/omprog.c')
-rw-r--r-- | plugins/omprog/omprog.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/omprog/omprog.c b/plugins/omprog/omprog.c index 940ef8d7..5f3b112f 100644 --- a/plugins/omprog/omprog.c +++ b/plugins/omprog/omprog.c @@ -131,6 +131,8 @@ static void execBinary(instanceData *pData, int fdStdin) { int i, iRet; struct sigaction sigAct; + sigset_t set; + char *newargv[] = { NULL }; char *newenviron[] = { NULL }; assert(pData != NULL); @@ -154,10 +156,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); |