Commit 9b25294b authored by pekka@mysql.com's avatar pekka@mysql.com

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

parent b25b4e9b
......@@ -63,8 +63,10 @@ extern "C" void handler_sigusr1(int signum); // child signalling failed restart
void systemInfo(const Configuration & conf,
const LogLevel & ll);
static FILE *child_info_file_r= 0;
static FILE *child_info_file_w= 0;
// These are used already before fork if fetch_configuration() fails
// (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)
{
......
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