From 84f2d8a9f05cb3ab9074b74d661b6499c42b2a8c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 12 Jan 2019 18:48:48 +0800 Subject: [PATCH] 1 --- server/wsproxy/app.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();