CUBRID Engine  latest
server.c File Reference
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/resource.h>
#include <unistd.h>
#include <limits.h>
#include "porting.h"
#include "system_parameter.h"
#include "connection_error.h"
#include "network.h"
#include "environment_variable.h"
#include "boot_sr.h"
#include "perf_monitor.h"
#include "util_func.h"
#include "tcp.h"
#include "heartbeat.h"
#include "log_impl.h"
Include dependency graph for server.c:

Go to the source code of this file.

Functions

static void register_fatal_signal_handler (int signo)
 
static void crash_handler (int signo, siginfo_t *siginfo, void *dummyp)
 
static void abort_handler (int signo, siginfo_t *siginfo, void *dummyp)
 
static int unmask_signal (int signo)
 
static void register_abort_signal_handler (int signo)
 
int main (int argc, char **argv)
 

Variables

static const char * database_name = ""
 
static char executable_path [PATH_MAX]
 

Function Documentation

static void abort_handler ( int  signo,
siginfo_t *  siginfo,
void *  dummyp 
)
static

Definition at line 266 of file server.c.

References assert, BO_IS_SERVER_RESTARTED, i, logtb_collect_local_clients(), NULL, and os_set_signal_handler().

Referenced by register_abort_signal_handler().

Here is the caller graph for this function:

static void crash_handler ( int  signo,
siginfo_t *  siginfo,
void *  dummyp 
)
static
static void register_abort_signal_handler ( int  signo)
static

Definition at line 117 of file server.c.

References abort_handler(), db_name, envvar_bindir_file(), executable_path, FALSE, and NULL.

Referenced by main().

Here is the caller graph for this function:

static void register_fatal_signal_handler ( int  signo)
static

Definition at line 103 of file server.c.

References crash_handler(), and NULL.

Referenced by crash_handler(), and main().

Here is the caller graph for this function:

static int unmask_signal ( int  signo)
static

Definition at line 85 of file server.c.

References NULL.

Referenced by crash_handler().

Here is the caller graph for this function:

Variable Documentation

const char* database_name = ""
static

Definition at line 71 of file server.c.

Referenced by crash_handler(), and main().