pub fn get_blocked_signals() -> SignalResult<Vec<c_int>>
Expand description
Retrieve the signal mask that is blocked of the current thread.
Use pthread_sigmask
to fetch the signal mask which is blocked for the caller, return the signal mask as
a vector of c_int.
ยงExamples
extern crate vmm_sys_util;
use vmm_sys_util::signal::{block_signal, get_blocked_signals};
block_signal(1).unwrap();
assert!(get_blocked_signals().unwrap().contains(&(1)));