]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xinitrc
xinitrc: only kill $background_pids if there are any
[config/dotfiles.git] / 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