updated some executables to actually work with the kernel changes

This commit is contained in:
Izaya 2019-11-04 08:55:39 +11:00
parent 346c6bcf29
commit 0ced41b897
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
print("PID# Parent Name") print("PID# Parent | Name")
for k,v in pairs(os.tasks()) do for k,v in pairs(os.tasks()) do
local t = os.taskInfo(v) local t = os.taskInfo(v)
print(string.format("%4d %4d %s",k,v.parent,v.name)) print(string.format("%4d %4d | %s",k,t.parent,t.name))
end end

View File

@ -26,6 +26,7 @@ setmetatable(shenv,{__index=function(_,k)
if _G[k] then if _G[k] then
return _G[k] return _G[k]
elseif fs.exists("/boot/exec/"..k..".lua") then elseif fs.exists("/boot/exec/"..k..".lua") then
--[[
local rqid = string.format("shell-%d",math.random(1,99999)) local rqid = string.format("shell-%d",math.random(1,99999))
return function(...) return function(...)
local tA = {...} local tA = {...}
@ -42,6 +43,8 @@ setmetatable(shenv,{__index=function(_,k)
end end
until tTasks[pid] == nil until tTasks[pid] == nil
end end
]]--
return loadfile("/boot/exec/"..k..".lua")
end end
end}) end})
print(_VERSION) print(_VERSION)