From: Simon Ruderich Date: Sun, 4 Nov 2018 07:22:56 +0000 (+0100) Subject: Add missing sigemptyset() X-Git-Tag: 0.1~5 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=00fc37e8084778674d5c8d5bd48f26177ad17817;p=ptyas%2Fptyas.git Add missing sigemptyset() Brace initialization can't initialize .sa_mask. --- diff --git a/ptyas.c b/ptyas.c index 9fc7997..2cd0cd6 100644 --- a/ptyas.c +++ b/ptyas.c @@ -428,6 +428,7 @@ int main(int argc, char **argv) { struct sigaction action = { .sa_handler = sigchld_handler, }; + sigemptyset(&action.sa_mask); if (sigaction(SIGCHLD, &action, NULL) != 0) { die("sigaction"); }