Function lrs::signal::wait

Suspends the calling thread until a certain signal arrives.

Syntax

fn wait(set: Sigset) -> Result<SigInfo, Errno>

Arguments

NameDescription
set

The set of signals to wait for.

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. If lrs was compiled with the retry option, the operation will automatically be restarted in this case.

See also