mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
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>
This commit is contained in:
committed by
Marcus Hoffmann
parent
118ffb20b5
commit
b2d84525f9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user