Function signal_handler::take_signal_handler
source · pub fn take_signal_handler(signal: Signal) -> Option<Box<dyn SignalHandler>>
Expand description
Take the SignalHandler
registered for the given signal
for the current task.
This removes the signal handler registered for this signal
for the current task.
Thus, if another exception occurs that triggers this signal
,
the returned handler will no longer exist to be invoked.
You’d need to re-register another handler for it using register_signal_handler
.