mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-11 08:16:19 -04:00
revert removal of process.running -- some scripts still use it
This commit is contained in:
parent
2a178f6d41
commit
c4c3811376
@ -150,4 +150,11 @@ function process.internal.continue(co, ...)
|
|||||||
return table.unpack(result, 2, result.n)
|
return table.unpack(result, 2, result.n)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function process.running(level) -- kept for backwards compat, prefer process.info
|
||||||
|
local info = process.info(level)
|
||||||
|
if info then
|
||||||
|
return info.path, info.env, info.command
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return process
|
return process
|
||||||
|
Loading…
x
Reference in New Issue
Block a user