diff options
author | Monty <monty@mariadb.org> | 2018-01-01 14:12:18 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-01-01 14:12:18 +0200 |
commit | 08ff39dca2ae8510dd2d2f9720b17eec9b23b38a (patch) | |
tree | 0b7f54bf8447057818b42eb623bbaf1b9acc4566 /sql/signal_handler.cc | |
parent | 322c637c1c7717b5d33e4d7670a39eae17040e3c (diff) | |
download | mariadb-git-08ff39dca2ae8510dd2d2f9720b17eec9b23b38a.tar.gz |
Write location of core when doing core dump
Diffstat (limited to 'sql/signal_handler.cc')
-rw-r--r-- | sql/signal_handler.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/signal_handler.cc b/sql/signal_handler.cc index 6e21d6249ab..68e801d5885 100644 --- a/sql/signal_handler.cc +++ b/sql/signal_handler.cc @@ -298,7 +298,9 @@ extern "C" sig_handler handle_fatal_signal(int sig) #ifdef HAVE_WRITE_CORE 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); my_write_core(sig); } |