Module calloop::signals

source ·
Expand description

Event source for tracking Unix signals

Only available on #[cfg(unix)].

This allows you to track and receive Unix signals through the event loop rather than by registering signal handlers. It uses signalfd under the hood.

The source will take care of masking and unmasking signals for the thread it runs on, but you are responsible for masking them on other threads if you run them. The simplest way to ensure that is to setup the signal event source before spawning any thread, as they’ll inherit their parent signal mask.

Structs

An event generated by the signal event source
An event source for receiving Unix signals

Enums