Skip to content
Snippets Groups Projects
Commit 96b7b521 authored by Vijay Pai's avatar Vijay Pai
Browse files

Fix exit condition

parent 64f8d09c
No related branches found
No related tags found
No related merge requests found
...@@ -77,8 +77,6 @@ using grpc::testing::StreamingOutputCallResponse; ...@@ -77,8 +77,6 @@ using grpc::testing::StreamingOutputCallResponse;
using grpc::testing::TestService; using grpc::testing::TestService;
using grpc::Status; using grpc::Status;
static bool got_sigint = false;
const char kEchoInitialMetadataKey[] = "x-grpc-test-echo-initial"; const char kEchoInitialMetadataKey[] = "x-grpc-test-echo-initial";
const char kEchoTrailingBinMetadataKey[] = "x-grpc-test-echo-trailing-bin"; const char kEchoTrailingBinMetadataKey[] = "x-grpc-test-echo-trailing-bin";
const char kEchoUserAgentKey[] = "x-grpc-test-echo-useragent"; const char kEchoUserAgentKey[] = "x-grpc-test-echo-useragent";
...@@ -325,7 +323,7 @@ void grpc::testing::interop::RunServer( ...@@ -325,7 +323,7 @@ void grpc::testing::interop::RunServer(
builder.AddListeningPort(server_address.str(), creds); builder.AddListeningPort(server_address.str(), creds);
std::unique_ptr<Server> server(builder.BuildAndStart()); std::unique_ptr<Server> server(builder.BuildAndStart());
gpr_log(GPR_INFO, "Server listening on %s", server_address.str().c_str()); gpr_log(GPR_INFO, "Server listening on %s", server_address.str().c_str());
while (!got_sigint) { while (!g_got_sigint) {
sleep(5); sleep(5);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment