unix/fiss

sigblock_all does not block everything but only terminating (0ea4110cd11edc0e69f8c45270c5c7608e38ad3f)
Repositories | LICENSE

commit 0ea4110cd11edc0e69f8c45270c5c7608e38ad3f
parent 90e2dfc13105dcab6539a3bba7ddd577d681aaa7
Author: Friedel Schön <[email protected]>
Date:   Mon,  5 Jun 2023 14:28:24 +0200

sigblock_all does not block everything but only terminating

Diffstat:
Msrc/util.c16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/util.c b/src/util.c @@ -100,14 +100,14 @@ void sigblock_all(int unblock) { sigset_t ss; sigemptyset(&ss); - sigfillset(&ss); - /* sigaddset(&ss, SIGALRM); - sigaddset(&ss, SIGCHLD); - sigaddset(&ss, SIGCONT); - sigaddset(&ss, SIGHUP); - sigaddset(&ss, SIGINT); - sigaddset(&ss, SIGPIPE); - sigaddset(&ss, SIGTERM);*/ + sigaddset(&ss, SIGALRM); + sigaddset(&ss, SIGCHLD); + sigaddset(&ss, SIGCONT); + sigaddset(&ss, SIGHUP); + sigaddset(&ss, SIGINT); + sigaddset(&ss, SIGPIPE); + sigaddset(&ss, SIGTERM); + sigprocmask(unblock, &ss, NULL); }