init: Let's not forget to unhook our notifiers
All checks were successful
Build and test / build (push) Successful in 1m42s

This commit is contained in:
apio 2024-12-04 22:54:01 +01:00
parent 7761a8a41f
commit 6fc49a0be5
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -143,6 +143,7 @@ static Result<void> try_start_service(Service& service)
{ {
if (service.wait_notify) { notifier.hook(); } if (service.wait_notify) { notifier.hook(); }
auto rc = service_child(service, new_stdout, new_stderr, new_stdin); auto rc = service_child(service, new_stdout, new_stderr, new_stdin);
if (service.wait_notify) { notifier.unhook(); }
if (rc.has_error()) if (rc.has_error())
{ {
do_errlog("[child %d] failed to start service %s due to error: %s\n", getpid(), service.name.chars(), do_errlog("[child %d] failed to start service %s due to error: %s\n", getpid(), service.name.chars(),