2 Commits

Author SHA1 Message Date
6b48e80157 Merge branch 'main' of https://git.astronand.dev/Hyperion/HyperionOS 2026-01-15 17:05:24 -05:00
fbbb8b8d65 fixed task log 2026-01-15 17:05:21 -05:00

View File

@@ -18,7 +18,13 @@ function sys.spawn(func, name, envars, args, tgid)
tasks[tostring(id)].status="Z"
tasks[tostring(id)].exit=tostring(err)
else
kernel.log("Task "..tostring(id).." exited with code: "..tostring(err), "INFO")
if kernel.config.logTaskExit then
if err then
kernel.log("Task "..tostring(id).." exited with code: "..tostring(err), "INFO")
else
kernel.log("Task "..tostring(id).." exited without code", "INFO")
end
end
tasks[tostring(id)].status="Z"
tasks[tostring(id)].exit=err
end