From 71bfd6046693abcae2e7b5ed776569dff676c995 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 11 Apr 2026 16:39:27 -0400 Subject: [PATCH] ignore SIGCHLD so children are reaped --- src/user/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/user/mod.rs b/src/user/mod.rs index 28a2df9..34aec26 100644 --- a/src/user/mod.rs +++ b/src/user/mod.rs @@ -554,6 +554,9 @@ pub enum SubCmd { #[tokio::main] pub async fn main() { + // Auto-reap child processes (channel daemons outlive the supervisor) + unsafe { libc::signal(libc::SIGCHLD, libc::SIG_IGN); } + // Initialize the Qwen tokenizer for direct token generation let tokenizer_path = dirs::home_dir().unwrap_or_default() .join(".consciousness/tokenizer-qwen35.json");