terminate gracefully if stdout goes away

This commit is contained in:
David Dollar
2012-06-17 21:55:28 -04:00
parent 83b2a9cc50
commit 24ed8946f3

View File

@@ -60,6 +60,8 @@ class Foreman::Engine::CLI < Foreman::Engine
$stdout.puts output
$stdout.flush
end
rescue Errno::EPIPE
terminate_gracefully
end
def shutdown