Functions§
- close_
fd - create_
death_ pipe - Create a pipe for parent-death detection. Returns (read_fd, write_fd). Neither end has CLOEXEC set. Parent holds write_fd open. Child monitors read_fd for POLLHUP.
- spawn_
death_ watcher - Monitor a death pipe FD in a background thread.
When the write end closes (parent dies), POLLHUP fires and
runningis set to false, triggering the probe’s graceful shutdown.