1
2// vim:sw=2:ai
3
4/*
5 * Copyright (C) 2010-2011 DeNA Co.,Ltd.. All rights reserved.
6 * Copyright (C) 2011-2017 Kentoku SHIBA
7 * See COPYRIGHT.txt for details.
8 */
9
10#include <my_global.h>
11#include "mysql_version.h"
12#if MYSQL_VERSION_ID < 50500
13#include "mysql_priv.h"
14#include <mysql/plugin.h>
15#else
16#include "sql_priv.h"
17#include "probes_mysql.h"
18#endif
19
20#include "fatal.hpp"
21
22namespace dena {
23
24/*
25const int opt_syslog = LOG_ERR | LOG_PID | LOG_CONS;
26*/
27
28void
29fatal_abort(const String& message)
30{
31 fprintf(stderr, "FATAL_COREDUMP: %s\n", message.ptr());
32/*
33 syslog(opt_syslog, "FATAL_COREDUMP: %s", message.ptr());
34*/
35 abort();
36}
37
38void
39fatal_abort(const char *message)
40{
41 fprintf(stderr, "FATAL_COREDUMP: %s\n", message);
42/*
43 syslog(opt_syslog, "FATAL_COREDUMP: %s", message);
44*/
45 abort();
46}
47
48};
49
50