aboutsummaryrefslogtreecommitdiff
path: root/initd/runsvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'initd/runsvc.c')
-rw-r--r--initd/runsvc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/initd/runsvc.c b/initd/runsvc.c
index 8aaa502..95c26cb 100644
--- a/initd/runsvc.c
+++ b/initd/runsvc.c
@@ -186,7 +186,6 @@ static int run_sequentially(exec_t *list, bool direct_exec_last)
pid_t runsvc(service_t *svc)
{
struct sigaction act;
- sigset_t mask;
pid_t pid;
int ret;
@@ -196,8 +195,7 @@ pid_t runsvc(service_t *svc)
perror("fork");
if (pid == 0) {
- sigfillset(&mask);
- sigprocmask(SIG_SETMASK, &mask, NULL);
+ cli(NULL);
memset(&act, 0, sizeof(act));
act.sa_handler = runsvc_sighandler;
@@ -220,8 +218,7 @@ pid_t runsvc(service_t *svc)
exit(EXIT_FAILURE);
}
- sigemptyset(&mask);
- sigprocmask(SIG_SETMASK, &mask, NULL);
+ sti(NULL);
if (svc->flags & SVC_FLAG_SUB_REAPER) {
prctl(PR_SET_CHILD_SUBREAPER, 1, 0, 0, 0);