diff --git a/module/sched.lua b/module/sched.lua index b909211..85eeaf7 100644 --- a/module/sched.lua +++ b/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