File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ void _PG_init(void)
98
98
{
99
99
signal_handlers [SIGSEGV ] = pqsignal (SIGSEGV , backtrace_handler );
100
100
signal_handlers [SIGBUS ] = pqsignal (SIGBUS , backtrace_handler );
101
+ signal_handlers [SIGFPE ] = pqsignal (SIGFPE , backtrace_handler );
101
102
signal_handlers [SIGINT ] = pqsignal (SIGINT , backtrace_handler );
102
103
prev_executor_run_hook = ExecutorRun_hook ;
103
104
ExecutorRun_hook = backtrace_executor_run_hook ;
@@ -116,6 +117,7 @@ void _PG_fini(void)
116
117
ExecutorRun_hook = prev_executor_run_hook ;
117
118
pqsignal (SIGSEGV , signal_handlers [SIGSEGV ]);
118
119
pqsignal (SIGBUS , signal_handlers [SIGBUS ]);
120
+ pqsignal (SIGFPE , signal_handlers [SIGFPE ]);
119
121
pqsignal (SIGINT , signal_handlers [SIGINT ]);
120
122
}
121
123
You can’t perform that action at this time.
0 commit comments