From: Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org>
To: Rainbows! list <rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org>
Subject: Re: Weird random Zbatery exception
Date: Fri, 2 Dec 2011 14:47:11 -0800 [thread overview]
Message-ID: <20111202224711.GA23422@dcvr.yhbt.net> (raw)
In-Reply-To: <CABAijKG5VwHN9p9p_4R4oSruFVH7j3TY0Z6twxLSLpKoxcO8jw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Damian Janowski <jano-eWlILCNyKRBBDgjK7y7TUQ@public.gmane.org> wrote:
> I'm giving Zbatery a try, currently testing with ThreadPool.
Thanks for giving it a try! :)
> I can't figure out precise steps to trigger this exception, but it
> happens after a few GET/POST requests:
> /usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:361:in
> `awaken_master': undefined method `kgio_trywrite' for nil:NilClass
> (NoMethodError)
Does your application fork/exec other processes? (`` or "system()",
popen all included).
> (Needless to say, I googled already without much luck).
I think you found a new bug, does the following patch fix it?
diff --git a/lib/zbatery.rb b/lib/zbatery.rb
index 735b1e6..17d7c06 100644
--- a/lib/zbatery.rb
+++ b/lib/zbatery.rb
@@ -82,6 +82,7 @@ module Rainbows
trap(:USR1) { Thread.new { reopen_logs } }
trap(:USR2) { Thread.new { reexec } }
trap(:HUP) { Thread.new { reexec; stop } }
+ trap(:CHLD, "IGNORE")
# technically feasible in some cases, just not sanely supportable:
%w(TTIN TTOU WINCH).each do |sig|
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying
next prev parent reply other threads:[~2011-12-03 0:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-02 19:39 Weird random Zbatery exception Damian Janowski
[not found] ` <CABAijKG5VwHN9p9p_4R4oSruFVH7j3TY0Z6twxLSLpKoxcO8jw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-02 22:47 ` Eric Wong [this message]
[not found] ` <20111202224711.GA23422-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2011-12-02 23:40 ` Eric Wong
[not found] ` <20111202234003.GA27418-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2011-12-03 1:46 ` Eric Wong
[not found] ` <20111203014632.GA3639-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org>
2011-12-05 18:29 ` Damian Janowski
2011-12-05 18:02 ` Damian Janowski
2011-12-05 18:02 ` Damian Janowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/rainbows/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111202224711.GA23422@dcvr.yhbt.net \
--to=normalperson-rmlxzr9ms24@public.gmane.org \
--cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/rainbows.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).