ignore SIGCHLD so children are reaped

This commit is contained in:
Kent Overstreet 2026-04-11 16:39:27 -04:00
parent dfef7fb446
commit 71bfd60466

View file

@ -554,6 +554,9 @@ pub enum SubCmd {
#[tokio::main] #[tokio::main]
pub async fn 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 // Initialize the Qwen tokenizer for direct token generation
let tokenizer_path = dirs::home_dir().unwrap_or_default() let tokenizer_path = dirs::home_dir().unwrap_or_default()
.join(".consciousness/tokenizer-qwen35.json"); .join(".consciousness/tokenizer-qwen35.json");