#include <signal_handler.h>
◆ SignalHandler()
mysql_harness::SignalHandler::SignalHandler |
( |
| ) |
|
|
default |
◆ ~SignalHandler()
mysql_harness::SignalHandler::~SignalHandler |
( |
| ) |
|
◆ add_sig_handler()
void mysql_harness::SignalHandler::add_sig_handler |
( |
int |
signum, |
|
|
std::function< void(int, std::string)> |
f |
|
) |
| |
|
inline |
add signal handler for a signal
- Parameters
-
signum | signal number |
f | signal handler |
◆ block_all_nonfatal_signals()
void mysql_harness::SignalHandler::block_all_nonfatal_signals |
( |
| ) |
|
◆ register_fatal_signal_handler()
void mysql_harness::SignalHandler::register_fatal_signal_handler |
( |
bool |
dump_core | ) |
|
register a handler for fatal signals.
- Parameters
-
dump_core | dump core of fatal signal |
◆ register_ignored_signals_handler()
void mysql_harness::SignalHandler::register_ignored_signals_handler |
( |
| ) |
|
◆ remove_sig_handler()
void mysql_harness::SignalHandler::remove_sig_handler |
( |
int |
signum | ) |
|
|
inline |
◆ spawn_signal_handler_thread()
void mysql_harness::SignalHandler::spawn_signal_handler_thread |
( |
| ) |
|
◆ HARNESS_ABORT_EXIT
constexpr const int mysql_harness::SignalHandler::HARNESS_ABORT_EXIT {1} |
|
staticconstexpr |
◆ HARNESS_FAILURE_EXIT
constexpr const int mysql_harness::SignalHandler::HARNESS_FAILURE_EXIT {2} |
|
staticconstexpr |
◆ HARNESS_RESTART_EXIT
constexpr const int mysql_harness::SignalHandler::HARNESS_RESTART_EXIT {16} |
|
staticconstexpr |
◆ HARNESS_SUCCESS_EXIT
constexpr const int mysql_harness::SignalHandler::HARNESS_SUCCESS_EXIT {0} |
|
staticconstexpr |
◆ kFatalSignals
constexpr const std::array mysql_harness::SignalHandler::kFatalSignals |
|
staticconstexpr |
Initial value:{SIGSEGV, SIGABRT, SIGBUS,
SIGILL, SIGFPE, SIGTRAP}
◆ kIgnoredSignals
constexpr const std::array mysql_harness::SignalHandler::kIgnoredSignals {SIGPIPE} |
|
staticconstexpr |
◆ sig_handlers_
Monitor<std::map<int, std::function<void(int, std::string)> > > mysql_harness::SignalHandler::sig_handlers_ |
|
private |
◆ signal_thread_
std::thread mysql_harness::SignalHandler::signal_thread_ |
|
private |
◆ signal_thread_ready_
WaitableMonitor<bool> mysql_harness::SignalHandler::signal_thread_ready_ {false} |
|
private |
The documentation for this class was generated from the following files: