oc firmware 1.0

This commit is contained in:
Astronand committed 2026-08-25 21:16:16 -04:00
1 parent faf4f27987
commit 125baaebf5
44 files changed
+1307 -513

No files matched your search

+4 -4
View File
@@ -1206,14 +1206,14 @@ local function runCommand(command)
local proc = syscall.spawn(function()
-- Open standard fds so programs that don't do it themselves work correctly.
syscall.open("/proc/self/parent/fd/0", "r") -- fd 0 stdin
syscall.open("/proc/self/parent/fd/1", "w") -- fd 1 stdout
syscall.open("/proc/self/parent/fd/2", "w") -- fd 2 stderr
--syscall.open("/proc/self/parent/fd/0", "r") -- fd 0 stdin
--syscall.open("/proc/self/parent/fd/1", "w") -- fd 1 stdout
--syscall.open("/proc/self/parent/fd/2", "w") -- fd 2 stderr
-- exec replaces this coroutine's code with a fresh isolated environment
-- compiled from disk by the kernel (via loadExecutable -> freshUserEnv),
-- so the child cannot share any upvalue or syscall table state with hysh.
syscall.exec(cmdPath, {table.unpack(args, 2)})
end, progName, nil, nil, nil, true)
end, progName)
while true do
local exited, code = syscall.collect(proc)