-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA-407106: Avoid using deprecated sigset and sigignore functions
Use `sigaction` and `sigprocmask` instead. There is also `signal`, but the manpage says to not use it. Indeed `sigaction` has more reliable semantics by default in POSIX (e.g. it blocks the signal while you are handling it, so you don't reenter it while it is executing). Unfortunately the new functions are more verbose, so introduce a loop for setting up the signal handlers. Signed-off-by: Edwin Török <[email protected]>
- Loading branch information
1 parent
ae28dcc
commit cf3c6d0
Showing
1 changed file
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters