35 std::function<
void()> shutdown_callback) {
40 std::cerr << __func__ <<
": Interrupt signal (" << signal_number <<
") received."
53 int const exit_code = signal_number == SIGTERM ? EXIT_SUCCESS : signal_number;
57 std::quick_exit(exit_code);
static void shutdownSubsystemsAndExit(int signal_number)
static void addShutdownCallback(std::function< void()> shutdown_callback)
static void registerSignalHandler()
static bool has_registered_signal_handler_
static std::vector< std::function< void()> > shutdown_callbacks_