diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2016-08-01 10:09:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-01 10:09:04 -0700 |
commit | 138d3e122137178ea2884160020043971d84acf0 (patch) | |
tree | d41e4521117761374ef105b9a0024912b0e1013b | |
parent | 64f8d09ca0f4e4d2172c07c58df39254292a23ce (diff) | |
parent | 96b7b521902a7e1c8b50abdb04752a84451f9a1c (diff) |
Merge pull request #9 from vjpai/sigint
Fix exit condition
-rw-r--r-- | test/cpp/interop/interop_server.cc | 4 |
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); } } |