fix colors during execution of single process

This commit is contained in:
David Dollar committed 2011-11-10 15:02:09 -05:00
1 parent 1c732a4658
commit 12720b4c12
1 file changed
+3 -2
+3 -2
View File
@@ -42,8 +42,9 @@ class Foreman::Engine
end end
def execute(name) def execute(name)
error "no such process: #{name}" unless procfile[name] error "no such process: #{name}" unless process = procfile[name]
fork procfile[name] process.color = next_color
fork process
trap("TERM") { puts "SIGTERM received"; terminate_gracefully } trap("TERM") { puts "SIGTERM received"; terminate_gracefully }
trap("INT") { puts "SIGINT received"; terminate_gracefully } trap("INT") { puts "SIGINT received"; terminate_gracefully }