From 00fc37e8084778674d5c8d5bd48f26177ad17817 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 4 Nov 2018 08:22:56 +0100 Subject: [PATCH] Add missing sigemptyset() Brace initialization can't initialize .sa_mask. --- ptyas.c | 1 + 1 file changed, 1 insertion(+) 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"); } -- 2.45.2