Skip to content

Commit

Permalink
Add crash signal handler for fatal arithmetic errors 'SIGFPE'
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierJF committed Sep 13, 2022
1 parent 6e56783 commit ac738c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ProxySQL_GloVars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ void ProxySQL_GlobalVariables::install_signal_handler() {
signal(SIGTERM, term_handler);
signal(SIGSEGV, crash_handler);
signal(SIGABRT, crash_handler);
signal(SIGFPE, crash_handler);
signal(SIGPIPE, SIG_IGN);
}

Expand Down

0 comments on commit ac738c2

Please sign in to comment.