aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvs12024-10-20 10:48:44 +1000
committerdvs12024-10-20 10:48:44 +1000
commitaf30ed01e5dd54d667b7d6fd62cb8ffc58091c16 (patch)
tree4ec01d135d64e65c31398349aafdcf579129b0a6
parentTweak APT.exe status return code to be more reliable. (diff)
downloadJackOnAllDevices-af30ed01e5dd54d667b7d6fd62cb8ffc58091c16.zip
JackOnAllDevices-af30ed01e5dd54d667b7d6fd62cb8ffc58091c16.tar.gz
JackOnAllDevices-af30ed01e5dd54d667b7d6fd62cb8ffc58091c16.tar.bz2
JackOnAllDevices-af30ed01e5dd54d667b7d6fd62cb8ffc58091c16.tar.xz
Tweak the "didn't die" sleep.
-rwxr-xr-xaataaj.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/aataaj.lua b/aataaj.lua
index b139faa..761163e 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -198,7 +198,7 @@ APT.killEmAll = function(all)
198 local c = 0 198 local c = 0
199 while 0 ~= tonumber(APT.exe("pgrep -u $USER -xc " .. l):Do().lines[1]) do 199 while 0 ~= tonumber(APT.exe("pgrep -u $USER -xc " .. l):Do().lines[1]) do
200 local s = 'TERM' 200 local s = 'TERM'
201 if c > 0 then s = 'KILL'; APT.exe("sleep " .. c):Do() end 201 if c > 1 then s = 'KILL'; APT.exe("sleep " .. c):Do() end
202 print( "pkill -" .. s .. " -u $USER -x " .. l) 202 print( "pkill -" .. s .. " -u $USER -x " .. l)
203 APT.exe("pkill -" .. s .. " -u $USER -x " .. l):Do() 203 APT.exe("pkill -" .. s .. " -u $USER -x " .. l):Do()
204 c = c + 1 204 c = c + 1