This commit is contained in:
aozhiwei 2019-01-12 18:48:48 +08:00
parent 5113b87e5a
commit 84f2d8a9f0

View File

@ -68,6 +68,7 @@ static void SavePerfLog()
void App::Init(int argc, char* argv[]) void App::Init(int argc, char* argv[])
{ {
signal(SIGPIPE, SIG_IGN);
this->argc = argc; this->argc = argc;
this->argv = argv; this->argv = argv;
@ -77,7 +78,6 @@ void App::Init(int argc, char* argv[])
return; return;
} }
a8::XPrintf("masterserver starting instance_id:%d pid:%d\n", {instance_id, getpid()}); a8::XPrintf("masterserver starting instance_id:%d pid:%d\n", {instance_id, getpid()});
signal(SIGPIPE, SIG_IGN);
loop_mutex_ = new std::mutex(); loop_mutex_ = new std::mutex();
loop_cond_ = new std::condition_variable(); loop_cond_ = new std::condition_variable();