[][src]Function nix::unistd::alarm::set

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

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.