Skip to main content

spawn_death_watcher

Function spawn_death_watcher 

Source
pub fn spawn_death_watcher(death_fd: i32, running: &'static AtomicBool)
Expand description

Monitor a death pipe FD in a background thread. When the write end closes (parent dies), POLLHUP fires and running is set to false, triggering the probe’s graceful shutdown.