nix::unistd::alarm

Function set

Source
pub fn set(secs: c_uint) -> Option<c_uint>
Expand description

Schedule an alarm signal.

This will cause the system to generate a SIGALRM signal for the process after the specified number of seconds have elapsed.

Returns the leftover time of a previously set alarm if there was one.