Poll for signals more frequently, for greater responsiveness

pull/6472/head
murgatroid99 9 years ago
parent 873e419cf7
commit 41fd37bbe3
  1. 2
      src/ruby/lib/grpc/signals.rb

@ -52,7 +52,7 @@ module GRPC
def wait_for_signals
t = Thread.new do
sleep 1 until GRPC::Core.signal_received? || @interpreter_exiting
sleep 0.1 until GRPC::Core.signal_received? || @interpreter_exiting
unless @interpreter_exiting
@handlers_mutex.synchronize do
@signal_handlers.each(&:call)

Loading…
Cancel
Save