Method clear_signal_mask()


Method clear_signal_mask

void clear_signal_mask(int sig)

Description

Allow a new callback for sig while 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 sig is out of range or has no active callback.

See also

signal(), alarm(), ualarm()