Just restore the old set.
This commit is contained in:
parent
08a5bdbcb3
commit
4c6a66c3e9
@ -602,7 +602,6 @@ static pid_t _exec_service (const char *service, const char *arg)
|
|||||||
memset (&sa, 0, sizeof (sa));
|
memset (&sa, 0, sizeof (sa));
|
||||||
sa.sa_handler = SIG_DFL;
|
sa.sa_handler = SIG_DFL;
|
||||||
sigemptyset (&sa.sa_mask);
|
sigemptyset (&sa.sa_mask);
|
||||||
sigemptyset (&empty);
|
|
||||||
sigfillset (&full);
|
sigfillset (&full);
|
||||||
sigprocmask (SIG_SETMASK, &full, &old);
|
sigprocmask (SIG_SETMASK, &full, &old);
|
||||||
|
|
||||||
@ -617,7 +616,7 @@ static pid_t _exec_service (const char *service, const char *arg)
|
|||||||
sigaction (SIGWINCH, &sa, NULL);
|
sigaction (SIGWINCH, &sa, NULL);
|
||||||
|
|
||||||
/* Unmask signals */
|
/* Unmask signals */
|
||||||
sigprocmask (SIG_SETMASK, &empty, NULL);
|
sigprocmask (SIG_SETMASK, &old, NULL);
|
||||||
|
|
||||||
/* Safe to run now */
|
/* Safe to run now */
|
||||||
execl (file, file, arg, (char *) NULL);
|
execl (file, file, arg, (char *) NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user