pub fn sigaction(
    signum: usize,
    act: *const SigAction,
    oldact: *mut SigAction
) -> isize
Expand description

Change the action taken by a process on receipt of a specific signal. (See signal(7) for an overview of signals.)

Fields in Structure of act & oldact

Arguments

  • signum: specifies the signal and can be any valid signal except SIGKILL and SIGSTOP.
  • act: new action
  • oldact: old action