at_exit added. use it to clean your dishes.

This commit is contained in:
Denis Knauf 2010-03-21 20:58:42 +01:00
parent 5169bee0ea
commit 5ef72caa6b

View file

@ -144,6 +144,10 @@ class RobustServer
end end
$stderr.puts "Unbeachtete Signale: #{@signals.map(&Signal.method(:[])).join( ', ')}" $stderr.puts "Unbeachtete Signale: #{@signals.map(&Signal.method(:[])).join( ', ')}"
trapping trapping
self.at_exit
$stderr.puts "Beende mich selbst." $stderr.puts "Beende mich selbst."
end end
def at_exit
end
end end