sys_rt_sigaction

Function sys_rt_sigaction 

Source
pub fn sys_rt_sigaction(
    _locked: &mut Locked<Unlocked>,
    current_task: &CurrentTask,
    signum: UncheckedSignal,
    user_action: MultiArchUserRef<sigaction_t, sigaction64_t>,
    user_old_action: MultiArchUserRef<sigaction_t, sigaction64_t>,
    sigset_size: usize,
) -> Result<(), Errno>
Expand description

The rt_sigaction syscall allows the calling process to examine and change the action associated with a specific signal.

§Args

  • signum: The signal number to examine or change. It can be any valid signal except SIGKILL and SIGSTOP.
  • user_action: A pointer to a sigaction structure. If it is not null, the new action for signal signum is installed from it.
  • user_old_action: A pointer to a sigaction structure. If it is not null, the previous action is saved in it.
  • sigset_size: The size in bytes of the signal sets in user_action and user_old_action.

§Returns

Ok(()) on success. Otherwise, returns an Errno with the error code.