lib/frontkick/command.rb in frontkick-0.5.5 vs lib/frontkick/command.rb in frontkick-0.5.6
- old
+ new
@@ -107,10 +107,10 @@
if opts[:timeout_kill]
Process.kill('SIGINT', pid)
exit_code = wait_thr.value.exitstatus
process_wait(pid)
end
- raise Frontkick::Timeout.new(pid, command, opts[:timeout_kill])
+ raise Frontkick::Timeout.new(pid, Shellwords.shelljoin(cmd_array), opts[:timeout_kill])
ensure
stdin.close if stdin and !stdin.closed?
stdout.close if stdout and !stdout.closed?
stderr.close if stderr and !stderr.closed?
wait_thr.kill if wait_thr and !wait_thr.stop?