lib/serverengine/worker.rb in serverengine-2.0.6 vs lib/serverengine/worker.rb in serverengine-2.0.7
- old
+ new
@@ -52,10 +52,14 @@
end
def after_start
end
+ def dump
+ Sigdump.dump unless config[:disable_sigdump]
+ end
+
def install_signal_handlers
w = self
SignalThread.new do |st|
st.trap(Signals::GRACEFUL_STOP) { w.stop }
st.trap(Signals::IMMEDIATE_STOP, 'SIG_DFL')
@@ -67,15 +71,14 @@
w.logger.reopen!
w.reload
}
st.trap(Signals::DETACH) { w.stop }
- st.trap(Signals::DUMP) { Sigdump.dump }
+ st.trap(Signals::DUMP) { w.dump }
end
end
def main
run
end
end
-
end