Skip to main content

create_death_pipe

Function create_death_pipe 

Source
pub fn create_death_pipe() -> Result<(i32, i32), Error>
Expand description

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.