pub fn register<P>(signal: c_int, pipe: P) -> Result<SigId, Error>
where
    P: AsRawFd + Send + Sync + 'static,
{
    let action = move || wake(pipe.as_raw_fd());
    unsafe { ::register(signal, action) }
}
/// Registers a write to a self-pipe whenever there's the signal.
///
/// The ownership of pipe is taken and will be closed whenever the created action is unregistered.
///
/// Note that if you want to register the same pipe for multiple signals, there's `try_clone`
/// method on many unix socket primitives.
Registers a write to a self-pipe whenever there's the signal.
The ownership of pipe is taken and will be closed whenever the created action is unregistered.

Note that if you want to register the same pipe for multiple signals, there's `try_clone`
method on many unix socket primitives.
Registers a write to a self - pipe whenever there ' s the signal . The ownership of pipe is taken and will be closed whenever the created action is unregistered . Note that if you want to register the same pipe for multiple signals there ' s ` try_clone ` method on many unix socket primitives .
pub fn register<P>(signal: c_int, pipe: P) -> Result<SigId, Error>
where
    P: AsRawFd + Send + Sync + 'static,
{
    let action = move || wake(pipe.as_raw_fd());
    unsafe { ::register(signal, action) }
}
pub fn register < P > ( signal : c_int , pipe : P ) -> Result < SigId , Error > where P : AsRawFd + Send + Sync + ' static , { let action = move | | wake ( pipe . as_raw_fd ( ) ) ; unsafe { :: register ( signal , action ) } }
Registers a write to a self-pipe whenever there's the signal.
Registers a write to a self - pipe whenever there ' s the signal .
signal
c_int
pipe
P
signal
c_int
pipe
P