Add missing sigemptyset()
authorSimon Ruderich <simon@ruderich.org>
Sun, 4 Nov 2018 07:22:56 +0000 (08:22 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 4 Nov 2018 07:22:56 +0000 (08:22 +0100)
Brace initialization can't initialize .sa_mask.

ptyas.c

diff --git a/ptyas.c b/ptyas.c
index 9fc7997269a23b756f8a173f399f8bbad771df26..2cd0cd62ac575974b6cf253f28a21cf8231cccc0 100644 (file)
--- 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");
     }