diff options
author | dvs1 | 2024-10-20 10:48:44 +1000 |
---|---|---|
committer | dvs1 | 2024-10-20 10:48:44 +1000 |
commit | af30ed01e5dd54d667b7d6fd62cb8ffc58091c16 (patch) | |
tree | 4ec01d135d64e65c31398349aafdcf579129b0a6 | |
parent | Tweak APT.exe status return code to be more reliable. (diff) | |
download | JackOnAllDevices-af30ed01e5dd54d667b7d6fd62cb8ffc58091c16.zip JackOnAllDevices-af30ed01e5dd54d667b7d6fd62cb8ffc58091c16.tar.gz JackOnAllDevices-af30ed01e5dd54d667b7d6fd62cb8ffc58091c16.tar.bz2 JackOnAllDevices-af30ed01e5dd54d667b7d6fd62cb8ffc58091c16.tar.xz |
Tweak the "didn't die" sleep.
-rwxr-xr-x | aataaj.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |