response signal 2

Former-commit-id: 8d3a36a2d332d05d48f9ecae990b70c35aee0072
pull/191/head
groot 2019-04-16 16:32:55 +08:00 committed by xj.lin
parent 8b689e8e2a
commit e4666f04f0
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ void SignalUtil::HandleSignal(int signum){
CommonUtil::PrintInfo("Server received signal:" + std::to_string(signum)); CommonUtil::PrintInfo("Server received signal:" + std::to_string(signum));
switch(signum){ switch(signum){
case SIGINT:
case SIGUSR2:{ case SIGUSR2:{
server::Server* server_ptr = server::Server::Instance(); server::Server* server_ptr = server::Server::Instance();
server_ptr->Stop(); server_ptr->Stop();