From af30ed01e5dd54d667b7d6fd62cb8ffc58091c16 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sun, 20 Oct 2024 10:48:44 +1000 Subject: Tweak the "didn't die" sleep. --- aataaj.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) local c = 0 while 0 ~= tonumber(APT.exe("pgrep -u $USER -xc " .. l):Do().lines[1]) do local s = 'TERM' - if c > 0 then s = 'KILL'; APT.exe("sleep " .. c):Do() end + if c > 1 then s = 'KILL'; APT.exe("sleep " .. c):Do() end print( "pkill -" .. s .. " -u $USER -x " .. l) APT.exe("pkill -" .. s .. " -u $USER -x " .. l):Do() c = c + 1 -- cgit v1.1