aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvs12024-10-19 15:34:40 +1000
committerdvs12024-10-19 15:34:40 +1000
commitc91218f4c01c21075af8d8976d37e3715a9c55e5 (patch)
tree1acb5aa8cbc8169c981dfac48444b9f772e2a7ef
parentNew function for killing a bunch of exes. (diff)
downloadJackOnAllDevices-c91218f4c01c21075af8d8976d37e3715a9c55e5.zip
JackOnAllDevices-c91218f4c01c21075af8d8976d37e3715a9c55e5.tar.gz
JackOnAllDevices-c91218f4c01c21075af8d8976d37e3715a9c55e5.tar.bz2
JackOnAllDevices-c91218f4c01c21075af8d8976d37e3715a9c55e5.tar.xz
If it doesn't want to TERM, wait an ever increasing time before escelating.
Diffstat (limited to '')
-rwxr-xr-xaataaj.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/aataaj.lua b/aataaj.lua
index 3c1a89b..83f870b 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -200,7 +200,7 @@ APT.killEmAll = function(all)
200 local c = 0 200 local c = 0
201 while 0 ~= tonumber(APT.exe("pgrep -u $USER -xc " .. l):Do().result) do 201 while 0 ~= tonumber(APT.exe("pgrep -u $USER -xc " .. l):Do().result) do
202 local s = 'TERM' 202 local s = 'TERM'
203 if c > 0 then s = 'KILL' end 203 if c > 0 then s = 'KILL'; APT.exe("sleep " .. c):Do() end
204 print( "pkill -" .. s .. " -u $USER -x " .. l) 204 print( "pkill -" .. s .. " -u $USER -x " .. l)
205 APT.exe("pkill -" .. s .. " -u $USER -x " .. l):Do() 205 APT.exe("pkill -" .. s .. " -u $USER -x " .. l):Do()
206 c = c + 1 206 c = c + 1