lib/kafo/kafo_configure.rb in kafo-0.3.4 vs lib/kafo/kafo_configure.rb in kafo-0.3.5
- old
+ new
@@ -290,10 +290,11 @@
exit_code = 0
exit_status = nil
options = [
'--verbose',
'--debug',
+ '--trace',
'--color=false',
'--show_diff',
'--detailed-exitcodes',
]
options.push '--noop' if noop?
@@ -310,9 +311,10 @@
if exit_status.nil? # process is still running or we have old ruby so we don't know
begin
Process.wait(pid)
rescue Errno::ECHILD # process could exit meanwhile so we rescue
end
+ exit_code = $?.exitstatus
end
end
end
rescue PTY::ChildExited => e # could be raised by Process.wait on older ruby or by PTY.check
exit_code = e.status.exitstatus