diff options
Diffstat (limited to 'src/ruby/end2end/sig_int_during_channel_watch_client.rb')
-rwxr-xr-x | src/ruby/end2end/sig_int_during_channel_watch_client.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ruby/end2end/sig_int_during_channel_watch_client.rb b/src/ruby/end2end/sig_int_during_channel_watch_client.rb index 389fc5ba33..0c6a374925 100755 --- a/src/ruby/end2end/sig_int_during_channel_watch_client.rb +++ b/src/ruby/end2end/sig_int_during_channel_watch_client.rb @@ -46,6 +46,8 @@ def main end end.parse! + trap('SIGINT') { exit 0 } + thd = Thread.new do child_thread_channel = GRPC::Core::Channel.new("localhost:#{server_port}", {}, |