diff --git a/server/wsproxy/app.cc b/server/wsproxy/app.cc index 18fe64b..b749ce4 100644 --- a/server/wsproxy/app.cc +++ b/server/wsproxy/app.cc @@ -68,6 +68,7 @@ static void SavePerfLog() void App::Init(int argc, char* argv[]) { + signal(SIGPIPE, SIG_IGN); this->argc = argc; this->argv = argv; @@ -77,7 +78,6 @@ void App::Init(int argc, char* argv[]) return; } a8::XPrintf("masterserver starting instance_id:%d pid:%d\n", {instance_id, getpid()}); - signal(SIGPIPE, SIG_IGN); loop_mutex_ = new std::mutex(); loop_cond_ = new std::condition_variable();