Browse Source

made os.taskInfo() not choke on being outside a process

pull/1/head
XeonSquared 4 years ago
parent
commit
98e3581e6e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      module/sched.lua

+ 1
- 0
module/sched.lua View File

@@ -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…
Cancel
Save