OmniSciDB  5ade3759e0
anonymous_namespace{QueryRunner.cpp} Namespace Reference

Functions

void calcite_shutdown_handler ()
 
void mapd_signal_handler (int signal_number)
 
void register_signal_handler ()
 

Variables

std::shared_ptr< Calciteg_calcite = nullptr
 

Function Documentation

◆ calcite_shutdown_handler()

void anonymous_namespace{QueryRunner.cpp}::calcite_shutdown_handler ( )

Definition at line 52 of file QueryRunner.cpp.

Referenced by mapd_signal_handler(), and QueryRunner::QueryRunner::QueryRunner().

52  {
53  if (g_calcite) {
54  g_calcite->close_calcite_server();
55  }
56 }
std::shared_ptr< Calcite > g_calcite
Definition: QueryRunner.cpp:50
+ Here is the caller graph for this function:

◆ mapd_signal_handler()

void anonymous_namespace{QueryRunner.cpp}::mapd_signal_handler ( int  signal_number)

Definition at line 58 of file QueryRunner.cpp.

References calcite_shutdown_handler(), logger::ERROR, LOG, and logger::shutdown().

Referenced by register_signal_handler().

58  {
59  LOG(ERROR) << "Interrupt signal (" << signal_number << ") received.";
61  // shut down logging force a flush
63  // terminate program
64  if (signal_number == SIGTERM) {
65  std::exit(EXIT_SUCCESS);
66  } else {
67  std::exit(signal_number);
68  }
69 }
#define LOG(tag)
Definition: Logger.h:182
void shutdown()
Definition: Logger.cpp:294
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ register_signal_handler()

void anonymous_namespace{QueryRunner.cpp}::register_signal_handler ( )

Definition at line 71 of file QueryRunner.cpp.

References mapd_signal_handler().

71  {
72  std::signal(SIGTERM, mapd_signal_handler);
73  std::signal(SIGSEGV, mapd_signal_handler);
74  std::signal(SIGABRT, mapd_signal_handler);
75 }
void mapd_signal_handler(int signal_number)
Definition: QueryRunner.cpp:58
+ Here is the call graph for this function:

Variable Documentation

◆ g_calcite

std::shared_ptr<Calcite> anonymous_namespace{QueryRunner.cpp}::g_calcite = nullptr