fix colors during execution of single process

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