From 1bd18f45b38203d486e82a91fbe8afc2a78f4366 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 9 Nov 2019 13:52:39 +1100 Subject: [PATCH] made os.taskInfo() default to the current process --- module/sched.lua | 1 + 1 file changed, 1 insertion(+) 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