lib/foreman/engine.rb in foreman-0.32.0 vs lib/foreman/engine.rb in foreman-0.33.0

- old
+ new

@@ -70,17 +70,11 @@ end def kill_all(signal="SIGTERM") running_processes.each do |pid, process| info "sending #{signal} to pid #{pid}" - kill(signal, -pid) or kill(signal, pid) + Process.kill(signal, pid) rescue Errno::ESRCH end - end - - def kill(signal, pid) - Process.kill signal, pid - rescue Errno::ESRCH - false end def terminate_gracefully info "sending SIGTERM to all processes" kill_all "SIGTERM"