mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-22 12:04:20 -05:00
made os.taskInfo() default to the current process
This commit is contained in:
parent
d23a25613d
commit
1bd18f45b3
@ -30,6 +30,7 @@ function os.tasks()
|
|||||||
return rt
|
return rt
|
||||||
end
|
end
|
||||||
function os.taskInfo(pid)
|
function os.taskInfo(pid)
|
||||||
|
pid = pid or os.pid()
|
||||||
if not tTasks[pid] then return false end
|
if not tTasks[pid] then return false end
|
||||||
return {name=tTasks[pid].n,parent=tTasks[pid].P}
|
return {name=tTasks[pid].n,parent=tTasks[pid].P}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user