Revert "Ensure foreman is the process group leader"

This reverts commit 44726e377e.

Conflicts:

	lib/foreman/engine.rb
This commit is contained in:
John Griffin committed 2013-04-09 17:05:16 +01:00
1 parent 7be4375168
commit 6786f4df39
1 file changed
+1 -4
+1 -4
View File
@@ -52,9 +52,6 @@ class Foreman::Engine
# Start the processes registered to this +Engine+ # Start the processes registered to this +Engine+
# #
def start def start
# Make sure foreman is the process group leader.
Process.setpgrp unless Foreman.windows?
register_signal_handlers register_signal_handlers
startup startup
spawn_processes spawn_processes
@@ -207,7 +204,7 @@ class Foreman::Engine
kill_children(signal) kill_children(signal)
else else
begin begin
Process.kill "-#{signal}", Process.getpgrp Process.kill "-#{signal}", Process.pid
rescue Errno::ESRCH, Errno::EPERM rescue Errno::ESRCH, Errno::EPERM
end end
end end