mirror of
https://github.com/troglobit/finit.git
synced 2026-11-22 20:01:46 +00:00
Unblock blocked signals after forking off a child
After forking off a new child, all signals that are blocked by finit should be unblocked before exec-ing the final binary. Also, finit now blocks SIGHUP, so add it to the set of signals that should be unblocked.
This commit is contained in:
1 parent
c0af01db6d
commit
a3193b34a6
2 files changed
+3
No files matched your search
@@ -278,6 +278,8 @@ int service_start(svc_t *svc)
|
||||
_e("%starting %s: %s", respawn ? "Res" : "S", svc->cmd, buf);
|
||||
}
|
||||
|
||||
sig_unblock();
|
||||
|
||||
if (svc->inetd.cmd)
|
||||
status = svc->inetd.cmd(svc->inetd.type);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user