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=-0.5 required=5.0 tests=AWL,MSGID_FROM_MTA_HEADER, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.unicorn.general Subject: Re: [ANN] unicorn 3.6.0 - small fixes, PRNG workarounds Date: Tue, 26 Apr 2011 16:17:30 -0700 Message-ID: <20110426231730.GB31098@dcvr.yhbt.net> References: <20110421065649.GA20263@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 1303860469 5154 80.91.229.12 (26 Apr 2011 23:27:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2011 23:27:49 +0000 (UTC) To: mongrel-unicorn@rubyforge.org Original-X-From: mongrel-unicorn-bounces@rubyforge.org Wed Apr 27 01:27:46 2011 Return-path: Envelope-to: gclrug-mongrel-unicorn@m.gmane.org X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Content-Disposition: inline In-Reply-To: <20110421065649.GA20263@dcvr.yhbt.net> User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Xref: news.gmane.org gmane.comp.lang.ruby.unicorn.general:926 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QErfS-00046G-FH for gclrug-mongrel-unicorn@m.gmane.org; Wed, 27 Apr 2011 01:27:42 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id D3E6C18583A6; Tue, 26 Apr 2011 19:27:41 -0400 (EDT) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id B06041858367 for ; Tue, 26 Apr 2011 19:17:32 -0400 (EDT) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id 20E881F6B0; Tue, 26 Apr 2011 23:17:32 +0000 (UTC) Eric Wong wrote: > If you're too lazy to upgrade, you can just do this in your after_fork > hooks: > > after_fork do |server,worker| > tmp = srand > OpenSSL::Random.seed(tmp.to_s) if defined?(OpenSSL::Random) > end Do this instead if you're too lazy to upgrade: after_fork do |server,worker| srand OpenSSL::Random.seed(rand.to_s) if defined?(OpenSSL::Random) end 3.6.1 has a similar fix. Thanks to ghazel for reporting the bug. -- Eric Wong _______________________________________________ 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