忽略SIGHUP信号

This commit is contained in:
xiongziliang 2022-05-29 21:44:53 +08:00
parent ea6ef2779e
commit fd52ba31b0

View File

@ -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;