diff --git a/module/sched.lua b/module/sched.lua index 960f826..f06fd91 100644 --- a/module/sched.lua +++ b/module/sched.lua @@ -58,6 +58,9 @@ function os.getenv(k) -- gets a process' *k* environment variable return tTasks[cPid].e[k] end end +function os.getTimeout() + return nTimeout +end function os.setTimeout(n) if type(n) == "number" and n >= 0 then nTimeout = n