From 005b5af6e2d32cc2a4a37b6edb60aacdfb5e8ed0 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Fri, 10 Oct 2014 13:11:47 -0400 Subject: [PATCH] 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. --- qa/rpc-tests/send.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/rpc-tests/send.sh b/qa/rpc-tests/send.sh index 8c0f11459..37367865c 100755 --- a/qa/rpc-tests/send.sh +++ b/qa/rpc-tests/send.sh @@ -16,7 +16,7 @@ fi if [ $1 = "-STOP" ]; then if [ -s ${PIDFILE} ]; then - kill -s ${SIGNAL} $(<${PIDFILE}) + kill -s ${SIGNAL} $(<$PIDFILE 2>/dev/null) 2>/dev/null fi exit 0 fi