mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
Write location of core when doing core dump
This commit is contained in:
parent
322c637c1c
commit
08ff39dca2
1 changed files with 3 additions and 1 deletions
|
@ -298,7 +298,9 @@ extern "C" sig_handler handle_fatal_signal(int sig)
|
||||||
#ifdef HAVE_WRITE_CORE
|
#ifdef HAVE_WRITE_CORE
|
||||||
if (test_flags & TEST_CORE_ON_SIGNAL)
|
if (test_flags & TEST_CORE_ON_SIGNAL)
|
||||||
{
|
{
|
||||||
my_safe_printf_stderr("%s", "Writing a core file\n");
|
char buff[80];
|
||||||
|
my_getwd(buff, sizeof(buff), 0);
|
||||||
|
my_safe_printf_stderr("Writing a core file at %s\n", buff);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
my_write_core(sig);
|
my_write_core(sig);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue