forked from mindspore-Ecosystem/mindspore
serving: ctrl+c not exit
This commit is contained in:
parent
2b1363bc7f
commit
46ad69278c
|
@ -262,9 +262,9 @@ Status Server::BuildAndStart() {
|
|||
ClearEnv();
|
||||
server->Shutdown();
|
||||
event_base_loopexit(eb, nullptr);
|
||||
exit_http();
|
||||
grpc_thread.join();
|
||||
restful_thread.join();
|
||||
exit_http();
|
||||
return SUCCESS;
|
||||
}
|
||||
} // namespace serving
|
||||
|
|
Loading…
Reference in New Issue