Merge pull request #2891 from hwangcc23/init-sigaction
Properly initialize sigaction struct
This commit is contained in:
commit
a5b5eef6c0
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue