sigsetmask
The `sigsetmask` function is a POSIX-compliant system call used in Unix-like operating systems to manipulate the signal mask of the calling process. It allows a program to temporarily block or unblock specific signals, controlling which signals can interrupt the process while it executes certain critical sections of code.
The function takes a single argument, `sigmask`, which is a bitmask representing the set of signals to
Prior to the introduction of `sigprocmask` in POSIX.1-2008, `sigsetmask` was the primary method for managing signal
The function returns 0 on success, or -1 on failure, with `errno` set to indicate the error