Skip to content

Commit

Permalink
Use sigemptyset() to initialize signal sets
Browse files Browse the repository at this point in the history
This is required by POSIX and musl libc in at least some situations.
  • Loading branch information
DemiMarie committed Apr 17, 2024
1 parent c664954 commit f3768d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/qrexec-daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ static void init(int xid)
.sa_handler = signal_handler,
.sa_flags = 0,
};
sigemptyset(&sigchld_action.sa_mask);
sigemptyset(&sigterm_action.sa_mask);
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
err(1, "signal");
if (sigaction(SIGCHLD, &sigchld_action, NULL))
Expand Down

0 comments on commit f3768d2

Please sign in to comment.