pub fn query_signal_disposition(signum: c_int) -> Result<SignalDisposition>Expand description
Query the current disposition of a signal (signum).
This inspects the kernel’s sigaction state for the given signal
without changing it (by passing act = NULL).
Returns:
SignalDisposition::Ignoredif the handler isSIG_IGNSignalDisposition::Defaultif the handler isSIG_DFLSignalDisposition::Customif a user-installed handler is present
§Errors
Returns an io::Error if the underlying sigaction call fails,
for example if signum is invalid.