From fbbb8b8d65c01c795c0b52b69c91ad4c01e07bec Mon Sep 17 00:00:00 2001 From: Astronand Date: Thu, 15 Jan 2026 17:05:21 -0500 Subject: [PATCH] fixed task log --- .../lib/modules/Hyperion/45_hypervisor.kmod | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Src/Hyperion-kernel-v1.0.0/lib/modules/Hyperion/45_hypervisor.kmod b/Src/Hyperion-kernel-v1.0.0/lib/modules/Hyperion/45_hypervisor.kmod index 79dae2f..30edf86 100644 --- a/Src/Hyperion-kernel-v1.0.0/lib/modules/Hyperion/45_hypervisor.kmod +++ b/Src/Hyperion-kernel-v1.0.0/lib/modules/Hyperion/45_hypervisor.kmod @@ -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