diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-03-14 21:16:24 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-03-14 21:16:24 +0100 |
commit | 44ea4e7c1f90f80ab5cf55f435856acca7a176db (patch) | |
tree | 29b6ddd92aaa202477a375e554a319538d2919cb /sql/signal_handler.cc | |
parent | 8245178f5d55d2f1f90e87a78a0c5c5245875809 (diff) | |
download | mariadb-git-44ea4e7c1f90f80ab5cf55f435856acca7a176db.tar.gz |
restore my_safe_printf_stderr for "crash-safe sigsegv handler"
use vsnprintf()
use write() on windows, not WriteFile or fwrite()
localtime_r is still a problem
Diffstat (limited to 'sql/signal_handler.cc')
-rw-r--r-- | sql/signal_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/signal_handler.cc b/sql/signal_handler.cc index 15be12b50ec..ae0cf6e1bb0 100644 --- a/sql/signal_handler.cc +++ b/sql/signal_handler.cc @@ -72,7 +72,7 @@ extern "C" sig_handler handle_fatal_signal(int sig) curr_time= my_time(0); localtime_r(&curr_time, &tm); - fprintf(stderr, "%02d%02d%02d %2d:%02d:%02d ", + my_safe_printf_stderr("%02d%02d%02d %2d:%02d:%02d ", tm.tm_year % 100, tm.tm_mon+1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); if (opt_expect_abort |