only display disregarded signals, if there are disregarded signals

This commit is contained in:
Denis Knauf 2013-04-15 12:19:23 +02:00
parent 960f3ef7a9
commit 37ac8bb3db

View file

@ -153,7 +153,7 @@ class RobustServer
exit 2
end
ensure
output.puts "Disregarded signals: #{@signals.map(&Signal.method(:[])).join( ', ')}"
output.puts "Disregarded signals: #{@signals.map(&Signal.method(:[])).join( ', ')}" unless @signals.empty?
trapping
self.at_exit
output.puts "Shutdown."