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: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: Re: [PATCH] Close tempfile and unlink it immediately. Date: Sat, 7 Sep 2013 20:21:10 +0000 Message-ID: <20130907202110.GA10632@dcvr.yhbt.net> References: <1378584456-22228-1-git-send-email-375GNU@Gmail.COM> <1378584456-22228-1-git-send-email-375GNU@Gmail.COM> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378585270 14185 80.91.229.3 (7 Sep 2013 20:21:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Sep 2013 20:21:10 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Sat Sep 07 22:21:14 2013 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:218 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VIP0M-0004id-3l for gclrkg-kgio@m.gmane.org; Sat, 07 Sep 2013 22:21:14 +0200 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id 62AB374BF4 for ; Sat, 7 Sep 2013 20:30:28 +0000 (UTC) Hleb Valoshka <375gnu@gmail.com> wrote: > When a Tempfile object is garbage collected, or when the Ruby interpreter > exits, its associated temporary file is automatically deleted. This may > lead to race condition when Tempfile is used like in these tests. Thanks! Signed-off and pushed to git://bogomips.org/kgio.git as commit c3be428c452fd9c91d31b5b7d5b697175b6652df