Lexicon Entry
sigaction
A robust POSIX API for signal handling that replaces the older `signal()` function. It provides granular control over signal masking during handler execution and supports retrieving detailed signal context.
Related Knowledge & Cross-References
Guide
POSIX Signal Handling: Asynchronous Contexts and Reentrancy
Unpacking asynchronous execution contexts, async-signal-safe functions, and the hidden dangers of reentrancy that make printf and malloc unsafe inside a signal handler.