made os.taskInfo() not choke on being outside a process
This commit is contained in:
parent
23680afd75
commit
98e3581e6e
@ -30,6 +30,7 @@ function os.tasks()
|
|||||||
return rt
|
return rt
|
||||||
end
|
end
|
||||||
function os.taskInfo(pid)
|
function os.taskInfo(pid)
|
||||||
|
if not tTasks[pid] then return false end
|
||||||
return {name=tTasks[pid].n,parent=tTasks[pid].P}
|
return {name=tTasks[pid].n,parent=tTasks[pid].P}
|
||||||
end
|
end
|
||||||
function os.sched() -- the actual scheduler function
|
function os.sched() -- the actual scheduler function
|
||||||
|
Loading…
Reference in New Issue
Block a user