mirror of https://github.com/milvus-io/milvus.git
response signal 2
Former-commit-id: 8d3a36a2d332d05d48f9ecae990b70c35aee0072pull/191/head
parent
8b689e8e2a
commit
e4666f04f0
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue