From 34f4732f1a9b6d79bd78d2efa951837cda296097 Mon Sep 17 00:00:00 2001 From: Fiona Klute Date: Fri, 1 May 2026 02:23:18 +0200 Subject: [PATCH] package/openssh/S50sshd: immediately return if sending stop fails If sending the stop signal fails but the PID file exists the following shutdown wait turns into an endless loop. Avoid that and return the error immediately. Signed-off-by: Fiona Klute Signed-off-by: Marcus Hoffmann --- package/openssh/S50sshd | 1 + 1 file changed, 1 insertion(+) diff --git a/package/openssh/S50sshd b/package/openssh/S50sshd index a5ff385acc..7d862db14c 100644 --- a/package/openssh/S50sshd +++ b/package/openssh/S50sshd @@ -36,6 +36,7 @@ stop() { echo "OK" else echo "FAIL" + return "$status" fi # sshd deletes its PID file on exit, wait for it to be gone while [ -f "$PIDFILE" ]; do