revert removal of process.running -- some scripts still use it

This commit is contained in:
payonel 2017-08-22 11:22:06 -07:00
parent 2a178f6d41
commit c4c3811376

View File

@ -150,4 +150,11 @@ function process.internal.continue(co, ...)
return table.unpack(result, 2, result.n)
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