Lines Matching refs:signal
3 use nix::sys::signal::*;
10 kill(getpid(), None).expect("Should be able to send signal to myself.");
17 .expect("Should be able to send signal to my process group.");
46 // This needs to be a signal that rust doesn't use in the test harness.
53 // Make sure the old set doesn't contain the signal, otherwise the following
57 "the {:?} signal is already blocked, please change to a \
62 // Now block the signal.
78 // Reset the signal.
87 extern "C" fn test_sigaction_handler(signal: libc::c_int) {
88 let signal = Signal::try_from(signal).unwrap();
89 SIGNALED.store(signal == Signal::SIGINT, Ordering::Relaxed);
107 unsafe { signal(Signal::SIGINT, action_handler) }.unwrap_err(),
116 unsafe { signal(Signal::SIGINT, SigHandler::SigIgn) }.unwrap();
119 unsafe { signal(Signal::SIGINT, SigHandler::SigDfl) }.unwrap(),
125 unsafe { signal(Signal::SIGINT, handler) }.unwrap(),
133 unsafe { signal(Signal::SIGINT, SigHandler::SigDfl) }.unwrap(),
138 // disposition to SIG_DFL prior to calling the signal handler
141 unsafe { signal(Signal::SIGINT, SigHandler::SigDfl) }.unwrap(),
145 // Restore default signal handler
146 unsafe { signal(Signal::SIGINT, SigHandler::SigDfl) }.unwrap();