mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 16:34:45 +07: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:
@@ -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