mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
In case of an abort, write "handling fatal signal" to DBUG log.
This commit is contained in:
parent
af31e2c55d
commit
d0defd1ea2
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
|
||||||
|
|
||||||
#include "mariadb.h"
|
#include "mariadb.h"
|
||||||
|
#include "my_dbug.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
//#include "sys_vars.h"
|
//#include "sys_vars.h"
|
||||||
|
@ -118,8 +119,8 @@ extern "C" sig_handler handle_fatal_signal(int sig)
|
||||||
my_safe_printf_stderr("Fatal " SIGNAL_FMT " while backtracing\n", sig);
|
my_safe_printf_stderr("Fatal " SIGNAL_FMT " while backtracing\n", sig);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
segfaulted = 1;
|
segfaulted = 1;
|
||||||
|
DBUG_PRINT("error", ("handling fatal signal"));
|
||||||
|
|
||||||
curr_time= my_time(0);
|
curr_time= my_time(0);
|
||||||
localtime_r(&curr_time, &tm);
|
localtime_r(&curr_time, &tm);
|
||||||
|
|
Loading…
Add table
Reference in a new issue