This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
OC-PsychOS2
mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
made os.taskInfo() not choke on being outside a process
pull/1/head
XeonSquared
4 years ago
parent
23680afd75
commit
98e3581e6e
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save