mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-12-24 19:59:20 -05:00
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
|
||||
end
|
||||
function os.taskInfo(pid)
|
||||
if not tTasks[pid] then return false end
|
||||
return {name=tTasks[pid].n,parent=tTasks[pid].P}
|
||||
end
|
||||
function os.sched() -- the actual scheduler function
|
||||
|
Loading…
Reference in New Issue
Block a user