Function lrs::signal::wait_timeout

Suspends the calling thread until a certain signal arrives or a timeout expires.

Syntax

fn wait_timeout(set: Sigset, timeout: Time) -> Result<SigInfo, Errno>

Arguments

NameDescription
set

The set of signals to wait for.

timeout

The timeout.

Return value

Returns information about the received signal.

Remarks

The signals in the set must first be blocked. This function can return prematurely if a signal handler was invoked.

See also