From e7b18feca579c08723388cd35b417fec3387e687 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 27 Mar 2022 16:27:46 +0200 Subject: [PATCH] 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 --- src/service.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/service.c b/src/service.c index d0f33c44..8dc2c758 100644 --- a/src/service.c +++ b/src/service.c @@ -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; } }