Suspends the calling thread until a certain signal arrives.
fn wait(set: Sigset) -> Result<SigInfo, Errno>
| Name | Description |
|---|---|
| set | The set of signals to wait for. |
Returns information about the received signal.
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.