made ps() deal with when a task dies

This commit is contained in:
Izaya 2017-08-28 16:04:26 +10:00
parent 6763791189
commit 862f1dcd30

View File

@ -12,7 +12,7 @@ end
function ps(f) function ps(f)
local f=f or "" local f=f or ""
print("PID\tName") print("PID\tName")
for k,v in ipairs(os.tasks()) do for k,v in pairs(os.tasks()) do
if v:find(f) then if v:find(f) then
print(tostring(k).."\t"..tostring(v)) print(tostring(k).."\t"..tostring(v))
end end