mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-19 09:18:33 +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:
parent
5c12d3d9fc
commit
fd19d5273e
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user