[−][src]Function signal_hook::pipe::register_raw
pub fn register_raw(signal: c_int, pipe: RawFd) -> Result<SigId, Error>
Registers a write to a self-pipe whenever there's the signal.
In this case, the pipe is taken as the RawFd
. It is still the caller's responsibility to
close it.
Note that passing the wrong file descriptor won't cause UB, but can still lead to severe bugs ‒ like data corruptions in files.