Skip to content

Commit f3768d2

Browse files
committed
Use sigemptyset() to initialize signal sets
This is required by POSIX and musl libc in at least some situations.
1 parent c664954 commit f3768d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

daemon/qrexec-daemon.c

+2
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ static void init(int xid)
413413
.sa_handler = signal_handler,
414414
.sa_flags = 0,
415415
};
416+
sigemptyset(&sigchld_action.sa_mask);
417+
sigemptyset(&sigterm_action.sa_mask);
416418
if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
417419
err(1, "signal");
418420
if (sigaction(SIGCHLD, &sigchld_action, NULL))

0 commit comments

Comments
 (0)