]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
xinitrc: only kill $background_pids if there are any
authorSimon Ruderich <simon@ruderich.org>
Mon, 18 Aug 2014 13:52:25 +0000 (15:52 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 18 Aug 2014 13:52:25 +0000 (15:52 +0200)
xinitrc

diff --git a/xinitrc b/xinitrc
index fb9a24e51cc7d9ae1a78d1671f1844a155b75062..ca31589dd7d3e24335595fc4235341bb34c56f05 100755 (executable)
--- 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