Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting out interop's server helper. #7447

Merged
merged 9 commits into from
Aug 4, 2016
Prev Previous commit
Next Next commit
Fix exit condition
  • Loading branch information
vjpai committed Aug 1, 2016
commit 96b7b521902a7e1c8b50abdb04752a84451f9a1c
4 changes: 1 addition & 3 deletions test/cpp/interop/interop_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
}
}