Method clear_signal_mask()
- Method
clear_signal_mask
voidclear_signal_mask(intsig)- Description
Allow a new callback for
sigwhile its current callback is running. Normally Pike defers another delivery of the same signal until the current callback returns. Call this from the callback before entering code that might block and needs a second delivery to interrupt it.This clears Pike's callback reentry guard, not the operating system's signal mask. A signal already received while the guard was set is preserved for later delivery.
- Throws
An error if
sigis out of range or has no active callback.- See also