From f749ffb907211e05814f03b90052452f39f6c496 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 29 Mar 2016 21:34:50 +0200 Subject: Silence stderr output of the kill command when testing for existing PIDs. --- bin/impressive-display | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/impressive-display b/bin/impressive-display index ad744f3..08d9da1 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -296,13 +296,13 @@ function reloadable_impressive { while [ -r $impressive_lock ] && [ "$(cat $impressive_lock)" != "RELOAD" ] && [ -e "$session_lock" ]; do sleep 1 - if ! kill -0 "$impressive_pid"; then + if ! kill -0 "$impressive_pid" 2>/dev/null; then rm "$session_lock" break fi done - kill -0 "$impressive_pid" && kill "$impressive_pid" + kill -0 "$impressive_pid" 2>/dev/null && kill "$impressive_pid" done -- cgit v1.2.3