lib/foreman/engine.rb in foreman-0.80.1 vs lib/foreman/engine.rb in foreman-0.80.2

- old
+ new

@@ -437,10 +437,11 @@ Process.wait2(-1, Process::WNOHANG) rescue Errno::ECHILD return nil end - @exitstatus ||= status.exitstatus + # record the exit status + @exitstatus ||= status.exitstatus if status # If no childred have died, nothing to do here return nil unless pid # Log the information about the process that exited