From 55c0dd03dfb5c31020ae3991c195bc50a8ba43d0 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 9 Jul 2025 00:53:11 -0400 Subject: [PATCH] add print messages --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index d0fdd2c..be379cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,14 +37,17 @@ fn init() -> Result<()> { config::Mode::Spawn => { // set up a process reaper. any time a child process dies, a SIGCHLD will be fired, and // the signal handler will reap the processes + eprintln!("installing signal handler"); system::syscall::signal(libc::SIGCHLD, handle_sigchld)?; loop { + eprintln!("spawning {command}"); if let Err(e) = std::process::Command::new(command).spawn() { eprintln!("Encountered error running {command}: {e}"); } } } config::Mode::Exec => { + eprintln!("pivoting to {command}"); system::syscall::execv(command, &[])?; } }