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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user