Hello community, here is the log from the commit of package rubygem-serverengine for openSUSE:Factory checked in at 2018-07-12 09:19:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-serverengine (Old) and /work/SRC/openSUSE:Factory/.rubygem-serverengine.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-serverengine" Thu Jul 12 09:19:27 2018 rev:4 rq:621977 version:2.0.7 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-serverengine/rubygem-serverengine.changes 2018-03-06 10:46:02.986967829 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-serverengine.new/rubygem-serverengine.changes 2018-07-12 09:21:23.310605119 +0200 @@ -1,0 +2,10 @@ +Tue Jul 10 15:21:13 UTC 2018 - factory-a...@kulow.org + +- updated to version 2.0.7 + see installed Changelog + + 2018-07-09 version 2.0.7: + + * Add disable_sigdump option + +------------------------------------------------------------------- Old: ---- serverengine-2.0.6.gem New: ---- serverengine-2.0.7.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-serverengine.spec ++++++ --- /var/tmp/diff_new_pack.lwhcnE/_old 2018-07-12 09:21:23.918605969 +0200 +++ /var/tmp/diff_new_pack.lwhcnE/_new 2018-07-12 09:21:23.922605976 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-serverengine -Version: 2.0.6 +Version: 2.0.7 Release: 0 %define mod_name serverengine %define mod_full_name %{mod_name}-%{version} ++++++ serverengine-2.0.6.gem -> serverengine-2.0.7.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog new/Changelog --- old/Changelog 2018-01-10 08:51:09.000000000 +0100 +++ new/Changelog 2018-07-10 16:50:05.000000000 +0200 @@ -1,3 +1,7 @@ +2018-07-09 version 2.0.7: + +* Add disable_sigdump option + 2018-02-09 version 2.0.6: * Avoid thread error log in ruby 2.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2018-01-10 08:51:09.000000000 +0100 +++ new/README.md 2018-07-10 16:50:05.000000000 +0200 @@ -319,7 +319,8 @@ - **HUP:** immediate restart (available only when `worker_type` is "process") - **USR2:** reload config file and reopen log file - **INT:** detach process for live restarting (available only when `supervisor` and `enable_detach` parameters are true. otherwise graceful shutdown) -- **CONT:** dump stacktrace and memory information to /tmp/sigdump-<pid>.log file +- **CONT:** dump stacktrace and memory information to /tmp/sigdump-<pid>.log file. This can be + disabled by including `disable_sigdump: true` in the configuration. Immediate shutdown and restart send SIGQUIT signal to worker processes which kills the processes. Graceful shutdown and restart call `Worker#stop` method and wait for completion of `Worker#run` method. @@ -463,6 +464,7 @@ - **daemonize** enables daemonize (default: false) - **pid_path** sets the path to pid file (default: don't create pid file) - **supervisor** enables supervisor if it's true (default: false) + - **disable_sigdump** disables the handling of the `SIGCONT` signal and dumping of the thread (default: false) - **daemon_process_name** changes process name ($0) of server or supervisor process - **chuser** changes execution user - **chgroup** changes execution group Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/serverengine/server.rb new/lib/serverengine/server.rb --- old/lib/serverengine/server.rb 2018-01-10 08:51:09.000000000 +0100 +++ new/lib/serverengine/server.rb 2018-07-10 16:50:05.000000000 +0200 @@ -70,6 +70,11 @@ nil end + def dump + Sigdump.dump unless config[:disable_sigdump] + nil + end + def install_signal_handlers s = self if @command_pipe @@ -89,7 +94,7 @@ when "DETACH" s.detach(true) when "DUMP" - Sigdump.dump + s.dump end end end @@ -104,7 +109,7 @@ st.trap(@config[:signal_graceful_restart] || Signals::GRACEFUL_RESTART) { s.restart(true) } st.trap(@config[:signal_immediate_restart] || Signals::IMMEDIATE_RESTART) { s.restart(false) } st.trap(@config[:signal_reload] || Signals::RELOAD) { s.reload } - st.trap(@config[:signal_dump] || Signals::DUMP) { Sigdump.dump } + st.trap(@config[:signal_dump] || Signals::DUMP) { s.dump } end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/serverengine/supervisor.rb new/lib/serverengine/supervisor.rb --- old/lib/serverengine/supervisor.rb 2018-01-10 08:51:09.000000000 +0100 +++ new/lib/serverengine/supervisor.rb 2018-07-10 16:50:05.000000000 +0200 @@ -148,6 +148,10 @@ end end + def dump + _dump + end + def install_signal_handlers s = self if @command_pipe @@ -167,7 +171,7 @@ when "DETACH" s.detach(true) when "DUMP" - Sigdump.dump + s.dump end end end @@ -179,7 +183,7 @@ st.trap(Signals::IMMEDIATE_RESTART) { s.restart(false) } st.trap(Signals::RELOAD) { s.reload } st.trap(Signals::DETACH) { s.detach(true) } - st.trap(Signals::DUMP) { Sigdump.dump } + st.trap(Signals::DUMP) { s.dump } end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/serverengine/version.rb new/lib/serverengine/version.rb --- old/lib/serverengine/version.rb 2018-01-10 08:51:09.000000000 +0100 +++ new/lib/serverengine/version.rb 2018-07-10 16:50:05.000000000 +0200 @@ -1,3 +1,3 @@ module ServerEngine - VERSION = "2.0.6" + VERSION = "2.0.7" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/serverengine/worker.rb new/lib/serverengine/worker.rb --- old/lib/serverengine/worker.rb 2018-01-10 08:51:09.000000000 +0100 +++ new/lib/serverengine/worker.rb 2018-07-10 16:50:05.000000000 +0200 @@ -54,6 +54,10 @@ def after_start end + def dump + Sigdump.dump unless config[:disable_sigdump] + end + def install_signal_handlers w = self SignalThread.new do |st| @@ -69,7 +73,7 @@ } st.trap(Signals::DETACH) { w.stop } - st.trap(Signals::DUMP) { Sigdump.dump } + st.trap(Signals::DUMP) { w.dump } end end @@ -77,5 +81,4 @@ run end end - end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-01-10 08:51:09.000000000 +0100 +++ new/metadata 2018-07-10 16:50:05.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: serverengine version: !ruby/object:Gem::Version - version: 2.0.6 + version: 2.0.7 platform: ruby authors: - Sadayuki Furuhashi autorequire: bindir: bin cert_chain: [] -date: 2018-01-10 00:00:00.000000000 Z +date: 2018-07-10 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: sigdump @@ -154,7 +154,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.6.13 +rubygems_version: 2.7.6 signing_key: specification_version: 4 summary: ServerEngine - multiprocess server framework diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/serverengine.gemspec new/serverengine.gemspec --- old/serverengine.gemspec 2018-01-10 08:51:09.000000000 +0100 +++ new/serverengine.gemspec 2018-07-10 16:50:05.000000000 +0200 @@ -15,7 +15,6 @@ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ["lib"] - gem.has_rdoc = false gem.required_ruby_version = ">= 2.1.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/daemon_spec.rb new/spec/daemon_spec.rb --- old/spec/daemon_spec.rb 2018-01-10 08:51:09.000000000 +0100 +++ new/spec/daemon_spec.rb 2018-07-10 16:50:05.000000000 +0200 @@ -44,6 +44,10 @@ wait_for_stop test_state(:server_restart_immediate).should == 1 + dm.dump + wait_for_stop + test_state(:server_dump).should == 1 + dm.stop(false) wait_for_stop test_state(:server_stop_immediate).should == 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/server_worker_context.rb new/spec/server_worker_context.rb --- old/spec/server_worker_context.rb 2018-01-10 08:51:09.000000000 +0100 +++ new/spec/server_worker_context.rb 2018-07-10 16:50:05.000000000 +0200 @@ -146,6 +146,11 @@ incr_test_state :server_detach super end + + def dump + incr_test_state :server_dump + super + end end module TestWorker