1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-27 04:12:51 +00:00

Fix missing initialization in int_panic_init() (#324)

panic_action.sa_mask and .sa_flags initialized twice, corresponding fields
in ignore_action not initialized.
This commit is contained in:
Nick Briggs
2021-01-30 18:11:30 -08:00
committed by GitHub
parent 5c12d3d9fc
commit fd19d5273e

View File

@@ -787,8 +787,8 @@ static void int_panic_init() {
panic_action.sa_flags = SA_SIGINFO;
ignore_action.sa_handler = SIG_IGN;
sigemptyset(&panic_action.sa_mask);
panic_action.sa_flags = 0;
sigemptyset(&ignore_action.sa_mask);
ignore_action.sa_flags = 0;
sigaction(SIGHUP, &panic_action, NULL);
sigaction(SIGQUIT, &panic_action, NULL);