pub unsafe fn register_rt_signal_handler(
num: c_int,
handler: extern "C" fn(c_int),
) -> Result<()>Expand description
Registers handler as the signal handler for the real-time signal with signum num.
The value of num must be within [SIGRTMIN, SIGRTMAX] range.
ยงSafety
This is considered unsafe because the given handler will be called asynchronously, interrupting whatever the thread was doing and therefore must only do async-signal-safe operations.