#[repr(C, align(4096))]pub struct SigProcControl {
pub pending: AtomicU64,
pub actions: [RawAction; 64],
pub sender_infos: [AtomicU64; 32],
}Expand description
Signal runtime struct for the entire process
Fields§
§pending: AtomicU64§actions: [RawAction; 64]§sender_infos: [AtomicU64; 32]Implementations§
Source§impl SigProcControl
impl SigProcControl
Sourcepub fn signal_will_ign(&self, sig: usize, stop_or_continue: bool) -> bool
pub fn signal_will_ign(&self, sig: usize, stop_or_continue: bool) -> bool
Checks if sig should be ignored based on the current action flags.
-
sig- The signal to check (e.g.SIGCHLD). -
stop_or_continue- Whether the signal is generated because a child process stopped (SIGSTOP,SIGTSTP) or continued (SIGCONT). IftrueandsigisSIGCHLD, the signal shall not be delivered if theSA_NOCLDSTOPflag is set forSIGCHLD.
pub fn signal_will_stop(&self, sig: usize) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SigProcControl
impl RefUnwindSafe for SigProcControl
impl Send for SigProcControl
impl Sync for SigProcControl
impl Unpin for SigProcControl
impl UnwindSafe for SigProcControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more