From 7b8e4ac9f289290006012be73f2a3ba7c52b7420 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 18 Aug 2014 15:52:25 +0200 Subject: [PATCH] xinitrc: only kill $background_pids if there are any --- xinitrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xinitrc b/xinitrc index fb9a24e..ca31589 100755 --- a/xinitrc +++ b/xinitrc @@ -185,4 +185,6 @@ if test -x /usr/bin/ssh-agent; then # No `eval` necessary, we terminate anyway. fi # Kill remaining background processes. -kill $background_pids +if test -n "$background_pids"; then + kill $background_pids +fi -- 2.44.1