From 580d6001fa0de80cb959fa66e2eef5693f3ed73b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 12 Jan 2019 18:48:10 +0800 Subject: [PATCH] signal(SIGPIPE, SIG_IGN); --- server/dbproxy/app.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/dbproxy/app.cc b/server/dbproxy/app.cc index f4f25cc..8bd78fc 100644 --- a/server/dbproxy/app.cc +++ b/server/dbproxy/app.cc @@ -1,5 +1,6 @@ #include "precompile.h" +#include #include #include #include @@ -64,6 +65,8 @@ static void SavePerfLog() void App::Init(int argc, char* argv[]) { + signal(SIGPIPE, SIG_IGN); + this->argc = argc; this->argv = argv;