diff options
author | Simon Nagl <simonnagl@aim.com> | 2016-05-12 22:43:41 +0200 |
---|---|---|
committer | Simon Nagl <simonnagl@aim.com> | 2016-05-12 22:43:41 +0200 |
commit | 28bb78dd9d0d32b5d32b1b4c766bbddb9f6e61b5 (patch) | |
tree | b30f6abcb99adf1141328535bf94a98bc62995dc /src/popen.c | |
parent | f4b4518afe2ad43b7d0ebe167b1bd2f1d3b4439c (diff) |
Signals: Fix uninitialized sa->sa_flag in sigaction.
For more details see #400
Diffstat (limited to 'src/popen.c')
-rw-r--r-- | src/popen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/popen.c b/src/popen.c index d4e86607bc..06f27c0b7c 100644 --- a/src/popen.c +++ b/src/popen.c @@ -126,6 +126,7 @@ FILE *mypopen(const char *command, pid_t *pidptr) struct sigaction sa; sigemptyset(&sa.sa_mask); sa.sa_handler = SIG_DFL; + sa.sa_flags = 0; if(sigaction(SIGPIPE, &sa, NULL) == -1) { error("Failed to change signal handler for SIGTERM"); } |