Commit 6321a621 authored by unknown's avatar unknown

ndb - main.cpp: avoid SEGV if fetch_configuration fails before fork


ndb/src/kernel/main.cpp:
  avoid SEGV if fetch_configuration fails before fork
parent 2ba25676
...@@ -63,8 +63,10 @@ extern "C" void handler_sigusr1(int signum); // child signalling failed restart ...@@ -63,8 +63,10 @@ extern "C" void handler_sigusr1(int signum); // child signalling failed restart
void systemInfo(const Configuration & conf, void systemInfo(const Configuration & conf,
const LogLevel & ll); const LogLevel & ll);
static FILE *child_info_file_r= 0; // These are used already before fork if fetch_configuration() fails
static FILE *child_info_file_w= 0; // (e.g. Unable to alloc node id). Set them to something reasonable.
static FILE *child_info_file_r= stdin;
static FILE *child_info_file_w= stdout;
static void writeChildInfo(const char *token, int val) static void writeChildInfo(const char *token, int val)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment