change proc-utils for proper support of static pids

This commit is contained in:
Izaya 2017-05-25 00:55:24 +00:00
parent 85dbe20f9f
commit 4fb2fc0e0e
1 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,10 @@
function pkill(P)
tT[P] = nil
end
function killsession(sI)
local rt={}
for k,v in ipairs(tT) do
if v[3].sI == sI then
T.insert(rt,1,k)
pkill(k)
end
end
for k,v in ipairs(rt) do
T.remove(tT,v)
end
end