From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: Weird random Zbatery exception Date: Fri, 2 Dec 2011 15:40:03 -0800 Message-ID: <20111202234003.GA27418@dcvr.yhbt.net> References: <20111202224711.GA23422@dcvr.yhbt.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322870150 29548 80.91.229.12 (2 Dec 2011 23:55:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2011 23:55:50 +0000 (UTC) To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Sat Dec 03 00:55:46 2011 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline In-Reply-To: <20111202224711.GA23422-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:304 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RWcxG-0001gX-1n for gclrrg-rainbows-talk@m.gmane.org; Sat, 03 Dec 2011 00:55:46 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 63DDF1D78108; Fri, 2 Dec 2011 18:55:44 -0500 (EST) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id D817418581B2 for ; Fri, 2 Dec 2011 18:40:04 -0500 (EST) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 06D0E1F4D3; Fri, 2 Dec 2011 23:40:04 +0000 (UTC) Eric Wong wrote: > 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") On second thought, "IGNORE" will probably break existing code. trap(:CHLD, "DEFAULT") should be better. Btw, this issue shouldn't affect Rainbows!, only Zbatery. Can you confirm? _______________________________________________ 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