Revert "Ensure foreman is the process group leader"

This reverts commit 44726e377e.

Conflicts:

	lib/foreman/engine.rb
This commit is contained in:
John Griffin
2013-04-09 17:05:16 +01:00
parent 7be4375168
commit 6786f4df39
+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