mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-04 20:51:27 +02:00
rpc-tests: don't spew non-errors to stdout
There's a brief race here, the process might've already exited and cleaned up after itself. If that's the case, reading from the pidfile will harmlessly fail. Keep those quiet.
This commit is contained in:
@ -16,7 +16,7 @@ fi
|
|||||||
|
|
||||||
if [ $1 = "-STOP" ]; then
|
if [ $1 = "-STOP" ]; then
|
||||||
if [ -s ${PIDFILE} ]; then
|
if [ -s ${PIDFILE} ]; then
|
||||||
kill -s ${SIGNAL} $(<${PIDFILE})
|
kill -s ${SIGNAL} $(<$PIDFILE 2>/dev/null) 2>/dev/null
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user