Преглед изворни кода

made os.taskInfo() default to the current process

pull/1/head
XeonSquared пре 4 година
родитељ
комит
1bd18f45b3
1 измењених фајлова са 1 додато и 0 уклоњено
  1. +1
    -0
      module/sched.lua

+ 1
- 0
module/sched.lua Прегледај датотеку

@@ -30,6 +30,7 @@ function os.tasks()
return rt
end
function os.taskInfo(pid)
pid = pid or os.pid()
if not tTasks[pid] then return false end
return {name=tTasks[pid].n,parent=tTasks[pid].P}
end


Loading…
Откажи
Сачувај