From d0a841536b5c7fc842355325d1776ee48b3f5403 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Wed, 10 Sep 2025 14:26:40 +0200 Subject: [PATCH] Properly indicate SIGKILL termination for waitpid. --- bootstrap/src/procmgr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/src/procmgr.rs b/bootstrap/src/procmgr.rs index 22eede37cb..7a985d5a85 100644 --- a/bootstrap/src/procmgr.rs +++ b/bootstrap/src/procmgr.rs @@ -147,10 +147,10 @@ pub fn run(write_fd: usize, auth: &FdGuard) { // dont-care, already called explicit exit() 0 } else if sts_buf.status == ContextStatus::ForceKilled as usize { - // TODO: "killed by SIGKILL" - 1 + (SIGKILL << 8) as u16 } else if sts_buf.status == ContextStatus::UnhandledExcp as usize { // TODO: translate arch-specific exception kind + // TODO: generate coredump (or let some other process do that) // into signal (SIGSEGV, SIGBUS, SIGILL, SIGFPE) 1 } else {