MySQL  8.0.27
Source Code Documentation
signal_handler.cc File Reference
#include "my_config.h"
#include <signal.h>
#include <sys/types.h>
#include <time.h>
#include <algorithm>
#include <atomic>
#include "lex_string.h"
#include "my_inttypes.h"
#include <unistd.h>
#include "my_macros.h"
#include "my_stacktrace.h"
#include "my_sys.h"
#include "sql/mysqld.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"

Macros

#define SIGNAL_FMT   "signal %d"
 

Functions

void handle_fatal_signal (int sig)
 Handler for fatal signals. More...
 

Variables

static volatile sig_atomic_t segfaulted = 0
 

Macro Definition Documentation

◆ SIGNAL_FMT

#define SIGNAL_FMT   "signal %d"

Function Documentation

◆ handle_fatal_signal()

void handle_fatal_signal ( int  sig)

Handler for fatal signals.

Fatal events (seg.fault, bus error etc.) will trigger this signal handler. The handler will try to dump relevant debugging information to stderr and dump a core image.

Signal handlers can only use a set of 'safe' system calls and library functions. A list of safe calls in POSIX systems are available at: http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html For MS Windows, guidelines are available at: http://msdn.microsoft.com/en-us/library/xdkz3x12(v=vs.71).aspx

Parameters
sigSignal number

Variable Documentation

◆ segfaulted

volatile sig_atomic_t segfaulted = 0
static