killall -2 Gate
#ifndef WIN32
//信号函数不能调用标准IO库函数
void SigInt(int nSigNo)
{
//gLog.WriteLog(enLogType_Error,"Error: program recv SIGINT signal, will exit");
//gServerRun = false;
GlobleDBCache::Instance()->m_bIsShutDown = true;
}
#endif
Tint32 main(Tint32 argc, char* argv[])
{
//ShmExceptionHandler();
#ifndef WIN32
signal(SIGINT, SigInt);
signal(SIGHUP , SIG_IGN);
signal(SIGQUIT , SIG_IGN);
#else
}
Linux中kill -2、kill -9等区别 && kill signal汇总 https://blog.csdn.net/a1010256340/article/details/75253353/