signalmaske
A signalmask, or signal mask, is a per-thread or per-process set of signals whose delivery is currently blocked in Unix-like operating systems. When a signal is masked, the kernel does not deliver it to the target thread immediately; instead the signal is marked as pending. If more signals arrive while masked, they may be queued for delivery depending on the signal type. When the mask is later changed to unmask a signal, the kernel delivers the signal, invoking any configured handler or performing the default action.
In POSIX systems the signal mask is typically manipulated with sigprocmask (or pthread_sigmask for threaded programs)
Key distinctions: the signal mask controls whether a signal is delivered, not what action occurs when it
Practical use typically involves protecting critical sections of code from asynchronous interruption by temporarily blocking certain