lib/frontkick/result.rb in frontkick-0.5.1 vs lib/frontkick/result.rb in frontkick-0.5.2
- old
+ new
@@ -7,10 +7,10 @@
alias :exitstatus= :exit_code= # for compatibility with Open3 Process::Status
def initialize(params = {})
@stdout = params[:stdout] || ""
@stderr = params[:stderr] || ""
- @exit_code = params[:exit_code] || 0
+ @exit_code = params[:exit_code] # exit_code would be nil if child process is killed -9
@duration = params[:duration] || 0
end
def output
@stdout