From fd52ba31b0ce31b4ca82f7eb3e48473b7f3775d5 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 29 May 2022 21:44:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5SIGHUP=E4=BF=A1=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/System.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/System.cpp b/server/System.cpp index 9b744230..86f580b0 100644 --- a/server/System.cpp +++ b/server/System.cpp @@ -147,6 +147,8 @@ void System::systemSetup(){ #ifndef ANDROID signal(SIGSEGV, sig_crash); signal(SIGABRT, sig_crash); + //忽略挂起信号 + signal(SIGHUP, SIG_IGN); NoticeCenter::Instance().addListener(nullptr,kBroadcastOnCrashDump,[](BroadcastOnCrashDumpArgs){ stringstream ss; ss << "## crash date:" << getTimeStr("%Y-%m-%d %H:%M:%S") << endl;