mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Call setsid() by default to detach from controlling terminal
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -333,6 +333,7 @@ static int service_start(svc_t *svc)
|
||||
args[i] = NULL;
|
||||
|
||||
redirect(svc);
|
||||
setsid();
|
||||
sig_unblock();
|
||||
|
||||
if (svc->inetd.cmd)
|
||||
|
||||
Reference in New Issue
Block a user