From 6fc49a0be5c1a2225994be2bf6e549b30f4d9f42 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 4 Dec 2024 22:54:01 +0100 Subject: [PATCH] init: Let's not forget to unhook our notifiers --- system/init.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/system/init.cpp b/system/init.cpp index 6d8d1bb7..7215d45a 100644 --- a/system/init.cpp +++ b/system/init.cpp @@ -143,6 +143,7 @@ static Result try_start_service(Service& service) { if (service.wait_notify) { notifier.hook(); } auto rc = service_child(service, new_stdout, new_stderr, new_stdin); + if (service.wait_notify) { notifier.unhook(); } if (rc.has_error()) { do_errlog("[child %d] failed to start service %s due to error: %s\n", getpid(), service.name.chars(),