package/mpd/S95mpd: do not wait for exit if sending stop failed

If sending the stop signal failed for whatever reason, waiting for an
existing PID file to disappear is likely to block indefinitely.

Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Tested-by: Andreas Ziegler <br025@umbiko.net>
Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
(cherry picked from commit b2d84525f9)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Fiona Klute
2026-06-06 20:20:30 +02:00
committed by Thomas Perale
parent 26af331ea3
commit 4cc43ad014

View File

@@ -31,6 +31,7 @@ stop() {
echo "OK"
else
echo "FAIL"
return "$status"
fi
# $DAEMON deletes its PID file on exit, wait for it to be gone
while [ -f "$PIDFILE" ]; do