From 13e0279e1126b166d65b19b5a4fdab2854e64349 Mon Sep 17 00:00:00 2001 From: wkejing Date: Thu, 28 Oct 2021 17:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90communication=5Flite=E3=80=91=E3=80=90?= =?UTF-8?q?L1-lwip=E3=80=91=E5=BF=BD=E7=95=A5=20SIGPIPE=20=E4=BF=A1?= =?UTF-8?q?=E5=8F=B7=EF=BC=8C=E9=81=BF=E5=85=8D=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=9C=A8send=E6=97=B6=E6=8C=82=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wkejing --- communication_lite/lwip_posix/src/ActsLwipTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/communication_lite/lwip_posix/src/ActsLwipTest.cpp b/communication_lite/lwip_posix/src/ActsLwipTest.cpp index 04ccdb7a5..31e2033a7 100755 --- a/communication_lite/lwip_posix/src/ActsLwipTest.cpp +++ b/communication_lite/lwip_posix/src/ActsLwipTest.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include "securec.h" using namespace std; @@ -41,7 +42,11 @@ static pthread_barrier_t g_barrier; class ActsLwipTest : public testing::Test { protected: // SetUpTestCase: Testsuit setup, run before 1st testcase - static void SetUpTestCase(void) {} + static void SetUpTestCase(void) + { + // Ignore SIGPIPE Signals + signal(SIGPIPE, SIG_IGN); + } // TearDownTestCase: Testsuit teardown, run after last testcase static void TearDownTestCase(void) {} // Testcase setup -- GitLab