unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
* [PATCH] Print stack for lazy workers
@ 2014-04-16  3:35 Camilo Lopez
  2014-04-16  3:35 ` [PATCH] Kill lazy workers with TERM before KILL Camilo Lopez
  0 siblings, 1 reply; 3+ messages in thread
From: Camilo Lopez @ 2014-04-16  3:35 UTC (permalink / raw)
  To: mongrel-unicorn; +Cc: Camilo Lopez, admin

This patch attemps at making the debugging of lazy workers easier by making sure
unicorn prints a stack trace to STDERR.

The patch does 2 things

  1. It kills lazy workers with TERM first and then attempts a KILL
  2. Prints the stack trace on every kill signal

Camilo Lopez (1):
  Kill lazy workers with TERM before KILL

 lib/unicorn/http_server.rb | 31 +++++++++++++++++++------------
 lib/unicorn/worker.rb      |  7 ++++++-
 2 files changed, 25 insertions(+), 13 deletions(-)

-- 
1.9.2

_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-16  3:35 [PATCH] Print stack for lazy workers Camilo Lopez
2014-04-16  3:35 ` [PATCH] Kill lazy workers with TERM before KILL Camilo Lopez
2014-04-16  8:44   ` Eric Wong

unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/unicorn-public
	git clone --mirror http://ou63pmih66umazou.onion/unicorn-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.unicorn

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox