From c91218f4c01c21075af8d8976d37e3715a9c55e5 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sat, 19 Oct 2024 15:34:40 +1000 Subject: If it doesn't want to TERM, wait an ever increasing time before escelating. --- aataaj.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) local c = 0 while 0 ~= tonumber(APT.exe("pgrep -u $USER -xc " .. l):Do().result) do local s = 'TERM' - if c > 0 then s = 'KILL' end + if c > 0 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