Function linux_api::signal::rt_sigaction
source · pub unsafe fn rt_sigaction(
signal: Signal,
new_action: &sigaction,
old_action: Option<&mut sigaction>,
) -> Result<(), Errno>
Expand description
Calls the rt_sigaction
syscall.
§Safety
new_action
’s handler must be safe to call as a signal handler. Seesignal-safety(7)
.- Generally,
new_action
must haveSA_RESTORER
set and a suitablerestorer
, such assigaction_restorer
. (There might be some esoteric way to call this syscall without this property, but I’m not aware of one).