pub fn setup_parent_death_signal() -> Result<()>Expand description
Set up parent death signal on Linux.
“Ensures sandboxed children die if the main process gets killed - you don’t want orphaned processes running around.”
Uses SIGTERM for graceful shutdown. Includes parent PID check to avoid race condition where parent exits between fork and exec.