From dev-return-22431-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Fri Oct 16 08:44:48 2009 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 26569 invoked from network); 16 Oct 2009 08:44:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 08:44:48 -0000 Received: (qmail 33463 invoked by uid 500); 16 Oct 2009 08:44:47 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 33357 invoked by uid 500); 16 Oct 2009 08:44:47 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 33349 invoked by uid 99); 16 Oct 2009 08:44:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 08:44:47 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 08:44:45 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9G8iORp001775 for ; Fri, 16 Oct 2009 04:44:24 -0400 Received: from fc11x64m0.jboss.hr (vpn-10-41.str.redhat.com [10.32.10.41]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9G8iNuU014559 for ; Fri, 16 Oct 2009 04:44:23 -0400 Message-ID: <4AD83266.4070905@apache.org> Date: Fri, 16 Oct 2009 10:44:22 +0200 From: Mladen Turk User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-2.7.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: dev@apr.apache.org Subject: Re: Crash in apr_file_close() (Linux) References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 On 16/10/09 10:26, Yuri V. Vishnevskiy wrote: > Dear developers, > For some reason in my program I need two file handlers of stdout stream. > > Could anybody try to reproduce this problem? Crash happens on windows as well, so it might be a real thing. If you need two file objects perhaps a dup could help. Anyhow crash should not happen or at least we should not that opening stdsream twice could make a crash. Regards -- ^TM