X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fsighandler.c;h=12ed0ef990dc7fc25bf15bb84f374d071d0c869a;hb=aa0b1f599f25cfe858ebbc7fa80d459bcdb2ae02;hp=b1e7d166f7631d371e775541a78a3a541832677d;hpb=7af2faebd85e734ce1224c5b5666f7c88054d62c;p=i3%2Fi3 diff --git a/src/sighandler.c b/src/sighandler.c index b1e7d166..12ed0ef9 100644 --- a/src/sighandler.c +++ b/src/sighandler.c @@ -98,7 +98,7 @@ static int sighandler_backtrace(void) { /* We provide pipe file descriptors for stdin/stdout because gdb < 7.5 * crashes otherwise, see - * http://sourceware.org/bugzilla/show_bug.cgi?id=14114 */ + * https://sourceware.org/bugzilla/show_bug.cgi?id=14114 */ dup2(stdin_pipe[0], STDIN_FILENO); dup2(stdout_pipe[1], STDOUT_FILENO); @@ -305,6 +305,8 @@ void handle_signal(int sig, siginfo_t *info, void *data) { struct sigaction action; action.sa_handler = SIG_DFL; + action.sa_flags = 0; + sigemptyset(&action.sa_mask); sigaction(sig, &action, NULL); raised_signal = sig;