made ps() deal with when a task dies
This commit is contained in:
parent
6763791189
commit
862f1dcd30
@ -12,7 +12,7 @@ end
|
||||
function ps(f)
|
||||
local f=f or ""
|
||||
print("PID\tName")
|
||||
for k,v in ipairs(os.tasks()) do
|
||||
for k,v in pairs(os.tasks()) do
|
||||
if v:find(f) then
|
||||
print(tostring(k).."\t"..tostring(v))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user