mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
Don't block PID 1 waiting for start/stop scripts, fork and forget
No point waiting for SysV start/stop scripts to finish, PID 1 should not risk getting blocked forever by broken scripts. Instead we fork them off and forget about them until they terminate. If they are buggy and don't finish, it's the problem of the admin. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
4a90a3e8ef
commit
e7b18feca5
1 file changed
-1
@@ -786,7 +786,6 @@ static int service_stop(svc_t *svc)
|
||||
break;
|
||||
default:
|
||||
svc_set_state(svc, SVC_STOPPING_STATE);
|
||||
rc = WEXITSTATUS(complete(svc->cmd, pid));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user