diff --git a/lib/sneakers/workergroup.rb b/lib/sneakers/workergroup.rb index fe6dd00..0e16b9a 100644 --- a/lib/sneakers/workergroup.rb +++ b/lib/sneakers/workergroup.rb @@ -9,11 +9,15 @@ def initialize def before_fork fbefore = Sneakers::CONFIG[:hooks][:before_fork] fbefore.call if fbefore + rescue => e + stop end def after_fork # note! this is not Serverengine#after_start, this is ours! fafter = Sneakers::CONFIG[:hooks][:after_fork] fafter.call if fafter + rescue => e + stop end def run