From 46ff54cfdef406024bf6290b9f10a8e46e8ebdd2 Mon Sep 17 00:00:00 2001 From: fbt Date: Sun, 29 Nov 2026 19:40:35 +0000 Subject: [PATCH] wrong :) Signed-off-by: fbt --- ssm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssm b/ssm index 33f4744..920b384 100755 --- a/ssm +++ b/ssm @@ -266,7 +266,7 @@ svc() { anywait "$job_pid"; job_exit=127 else printf '%s' "$job_pid" > "$service_pidfile" - wait "$job_pid"; job_exit=$? + wait -n "$job_pid"; job_exit=$? fi # One service failure, two service failures... @@ -450,7 +450,7 @@ start() { svc "${service_command[@]}" & job=$! if service_oneshot; then - wait -n "$job"; res=$? + wait "$job"; res=$? (( res )) && { printf '%s' "$res" > "$service_exit_file"