aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2016-08-01 10:09:04 -0700
committerGravatar GitHub <noreply@github.com>2016-08-01 10:09:04 -0700
commit138d3e122137178ea2884160020043971d84acf0 (patch)
treed41e4521117761374ef105b9a0024912b0e1013b
parent64f8d09ca0f4e4d2172c07c58df39254292a23ce (diff)
parent96b7b521902a7e1c8b50abdb04752a84451f9a1c (diff)
Merge pull request #9 from vjpai/sigint
Fix exit condition
-rw-r--r--test/cpp/interop/interop_server.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/cpp/interop/interop_server.cc b/test/cpp/interop/interop_server.cc
index 384d8da720..e5878bb248 100644
--- a/test/cpp/interop/interop_server.cc
+++ b/test/cpp/interop/interop_server.cc
@@ -77,8 +77,6 @@ using grpc::testing::StreamingOutputCallResponse;
using grpc::testing::TestService;
using grpc::Status;
-static bool got_sigint = false;
-
const char kEchoInitialMetadataKey[] = "x-grpc-test-echo-initial";
const char kEchoTrailingBinMetadataKey[] = "x-grpc-test-echo-trailing-bin";
const char kEchoUserAgentKey[] = "x-grpc-test-echo-useragent";
@@ -325,7 +323,7 @@ void grpc::testing::interop::RunServer(
builder.AddListeningPort(server_address.str(), creds);
std::unique_ptr<Server> server(builder.BuildAndStart());
gpr_log(GPR_INFO, "Server listening on %s", server_address.str().c_str());
- while (!got_sigint) {
+ while (!g_got_sigint) {
sleep(5);
}
}