From 12127ab477344ab27e8739fc4bf9fe09e66fdfb0 Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Tue, 14 Aug 2018 22:10:59 -0500
Subject: [PATCH] wmstartup.sh: Better baseball bat and break code

---
 .config/dtfscripts/wmstartup.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.config/dtfscripts/wmstartup.sh b/.config/dtfscripts/wmstartup.sh
index da407dd4..a100df36 100755
--- a/.config/dtfscripts/wmstartup.sh
+++ b/.config/dtfscripts/wmstartup.sh
@@ -71,7 +71,8 @@ for service in $services; do
 	while pgrep $service > /dev/null 2>&1; do
 		if [[ "$i" = "10" ]]; then
 			printf "  [INFO] Waited too long, killing $service with prejudice\n"
-			killall -9 $service
+			pkill -9 $service
+			break
 		else
 			printf "  [INFO] Waiting on $service\n"
 			sleep 0.5