Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 51872 invoked from network); 17 Jan 2006 14:06:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jan 2006 14:06:57 -0000 Received: (qmail 64633 invoked by uid 500); 17 Jan 2006 14:05:19 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 63653 invoked by uid 500); 17 Jan 2006 14:05:13 -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 63381 invoked by uid 99); 17 Jan 2006 14:05:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 06:05:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.115.211.24] (HELO herkules.oderland.com) (213.115.211.24) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 06:02:03 -0800 Received: from h64n5c1o1032.bredband.skanova.com ([81.225.92.64] helo=localhost.localdomain) by herkules.oderland.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52) id 1EyrOw-0001DG-GZ for dev@apr.apache.org; Tue, 17 Jan 2006 15:01:39 +0100 Received: from pl (helo=localhost) by localhost.localdomain with local-esmtp (Exim 4.60) (envelope-from ) id 1EyrOx-0001bT-FI for dev@apr.apache.org; Tue, 17 Jan 2006 15:01:35 +0100 Date: Tue, 17 Jan 2006 15:01:35 +0100 (CET) From: "Peter N. Lundblad" X-X-Sender: pl@localhost.localdomain To: dev@apr.apache.org Subject: Pipe inheritance Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - herkules.oderland.com X-AntiAbuse: Original Domain - apr.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - famlundblad.se X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, While debugging a Subversion problem, I noted that when apr_file_pipe_create is called on Linux, the created file descriptors are inherited to child processes by default (luckily, one can reset this). This is inconsistent with the default for apr_file_open. If I understand it correctly, the Windows code also does *not* make the pipe ends inherited by default (it zero-inits the apr_file_t struct and doesn't seem to touch the flags, leaving INHERIT unset. Nothing of this is documented in apr_file_io.h. While I can see the reason for pipes to be inherited by default, it seems inconsistent to do so, and you normally only want one end to be inherited, so you don't save any code by having that default. I could easily provide a patch for this if you want to. Any thoughts? Regards, //Peter