OmniSciDB  addbbd5075
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

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

Definition at line 53 of file QueryRunner.cpp.

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

53  {
54  if (g_calcite) {
55  g_calcite->close_calcite_server();
56  g_calcite.reset();
57  }
58 }
std::shared_ptr< Calcite > g_calcite
Definition: QueryRunner.cpp:51

+ Here is the caller graph for this function:

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

Definition at line 60 of file QueryRunner.cpp.

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

Referenced by register_signal_handler().

60  {
61  LOG(ERROR) << "Interrupt signal (" << signal_number << ") received.";
63  // shut down logging force a flush
65  // terminate program
66  if (signal_number == SIGTERM) {
67  std::exit(EXIT_SUCCESS);
68  } else {
69  std::exit(signal_number);
70  }
71 }
#define LOG(tag)
Definition: Logger.h:188
void shutdown()
Definition: Logger.cpp:306

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 73 of file QueryRunner.cpp.

References mapd_signal_handler().

73  {
74  std::signal(SIGTERM, mapd_signal_handler);
75  std::signal(SIGSEGV, mapd_signal_handler);
76  std::signal(SIGABRT, mapd_signal_handler);
77 }
void mapd_signal_handler(int signal_number)
Definition: QueryRunner.cpp:60

+ Here is the call graph for this function:

Variable Documentation

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