lib/frontkick/command.rb in frontkick-0.4.5 vs lib/frontkick/command.rb in frontkick-0.4.6

- old
+ new

@@ -17,10 +17,10 @@ return Result.new(:stdout => command, :stderr => '', :exit_code => 0, :duration => 0) end lock_fd = file_lock(opts[:exclusive], opts[:exclusive_blocking]) if opts[:exclusive] begin - timeout(opts[:timeout], Frontkick::TimeoutLocal) do # nil is for no timeout + ::Timeout.timeout(opts[:timeout], Frontkick::TimeoutLocal) do # nil is for no timeout duration = Benchmark.realtime do stdin, out, err, wait_thr = Open3.popen3(*cmd_array) out_reader = Thread.new { out.read } err_reader = Thread.new { err.read } stdin.close