commit | f2554d051bef272ca627c84283fa8022df772fbb | [log] [tgz] |
---|---|---|
author | Vijay Pai <vpai@google.com> | Thu Apr 02 13:58:27 2015 -0700 |
committer | Vijay Pai <vpai@google.com> | Thu Apr 02 13:58:27 2015 -0700 |
tree | a13f931426ac0ed16b03497d80046ffc5bddb940 | |
parent | 63adffe3f4611d668e980964ba7133126ec89158 [diff] |
Revive proper SIGINT handling
diff --git a/test/cpp/qps/worker.cc b/test/cpp/qps/worker.cc index 378151c..b6830cc 100644 --- a/test/cpp/qps/worker.cc +++ b/test/cpp/qps/worker.cc
@@ -71,6 +71,8 @@ static bool got_sigint = false; +static void sigint_handler(int x) {got_sigint = true;} + namespace grpc { namespace testing { @@ -248,6 +250,8 @@ grpc_init(); ParseCommandLineFlags(&argc, &argv, true); + signal(SIGINT, sigint_handler); + grpc::testing::RunServer(); grpc_shutdown();