Merge pull request #352 from john-griffin/master

Restore ability to trap crtl+c
This commit is contained in:
David Dollar
2013-04-11 07:59:52 -07:00
+1 -4
View File
@@ -52,9 +52,6 @@ class Foreman::Engine
# Start the processes registered to this +Engine+
#
def start
# Make sure foreman is the process group leader.
Process.setpgrp unless Foreman.windows?
register_signal_handlers
startup
spawn_processes
@@ -207,7 +204,7 @@ class Foreman::Engine
kill_children(signal)
else
begin
Process.kill "-#{signal}", Process.getpgrp
Process.kill "-#{signal}", Process.pid
rescue Errno::ESRCH, Errno::EPERM
end
end