From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=1.3 required=5.0 tests=FREEMAIL_FROM,RDNS_NONE, T_DKIM_INVALID shortcircuit=no autolearn=no version=3.3.2 X-Original-To: archivist@yhbt.net Delivered-To: archivist@dcvr.yhbt.net Received: from rubyforge.org (unknown [50.56.192.79]) by dcvr.yhbt.net (Postfix) with ESMTP id E5D931FDEB for ; Fri, 1 Nov 2013 18:37:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id D84A72E2D3; Fri, 1 Nov 2013 18:37:38 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by rubyforge.org (Postfix) with ESMTP id 973BD2E2CE for ; Fri, 1 Nov 2013 18:32:35 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id er20so3117770lab.7 for ; Fri, 01 Nov 2013 11:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bwNm2Ddmvmen5TFOTkhVvURpy3X2gbGB23LXbDI0IBI=; b=wz/YdxtEM6tCh7yEw6vyOKHqFrrjKXw+cmrzxhCPfXnd3XjeMWxUXyzdE7BnQ2itEp Qx5wm0u8HoINDOiPBlzdTPtpvi3Xjf0VdAvSsHIav8fVJ4TS2azQ/WZLwaUaJBGYyKVL 6hjBDtUHtH/VXnksuPAfemfoaKC1hP+6mVWqwz+8GgHAe57pS63R1KfMSrxRXNyf3Owl eEyXMvh37U488V5uqZBvdzVp4cRcWyRPm5C8HyKglxPnmlPK/moPRYzgumIsBYtWi3zN 29GyH7iC/KdZnyEG+62tIOie1zDHgbUTQi6hMzjlbC2vE1q06gEvgG7GzfJg09iZJ4Ul tflA== MIME-Version: 1.0 X-Received: by 10.112.172.137 with SMTP id bc9mr2634755lbc.21.1383330751931; Fri, 01 Nov 2013 11:32:31 -0700 (PDT) Received: by 10.114.233.198 with HTTP; Fri, 1 Nov 2013 11:32:31 -0700 (PDT) In-Reply-To: References: <5273c853.0575320a.4f74.ffffaae6@mx.google.com> Date: Fri, 1 Nov 2013 14:32:31 -0400 Message-ID: Subject: Re: [PATCH] construct listener_fds Hash in 1.8 compatible way From: "Ernest W. Durbin III" To: unicorn list 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org On Fri, Nov 1, 2013 at 1:46 PM, Hleb Valoshka <375gnu@gmail.com> wrote: > On 11/1/13, Ernest W. Durbin III wrote: > >> + LISTENERS.map do |sock| > > You mean LISTENERS.each, aren't you? :) > the call has been to `LISTENERS.map` as far back in the history of lib/unicorn/http_server.rb as i could find. >> # IO#close_on_exec= will be available on any future version of >> # Ruby that sets FD_CLOEXEC by default on new file descriptors >> # ref: http://redmine.ruby-lang.org/issues/5041 >> sock.close_on_exec = false if sock.respond_to?(:close_on_exec=) >> - [ sock.fileno, sock ] >> - end] >> + listener_fds[sock.fileno] = sock >> + end > _______________________________________________ > 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 _______________________________________________ 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