diff options
author | dvs1 | 2024-10-19 15:34:40 +1000 |
---|---|---|
committer | dvs1 | 2024-10-19 15:34:40 +1000 |
commit | c91218f4c01c21075af8d8976d37e3715a9c55e5 (patch) | |
tree | 1acb5aa8cbc8169c981dfac48444b9f772e2a7ef | |
parent | New function for killing a bunch of exes. (diff) | |
download | JackOnAllDevices-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-x | aataaj.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |