Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 42213 invoked from network); 30 May 2006 10:22:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 10:22:02 -0000 Received: (qmail 98171 invoked by uid 500); 30 May 2006 10:22:01 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 98016 invoked by uid 500); 30 May 2006 10:22:00 -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 98002 invoked by uid 99); 30 May 2006 10:22:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 03:22:00 -0700 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 [80.190.233.148] (HELO mail.hp-weidinger.at) (80.190.233.148) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 03:21:58 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.hp-weidinger.at (Postfix) with ESMTP id EF9162200CC; Tue, 30 May 2006 12:21:33 +0200 (CEST) Received: from mail.hp-weidinger.at ([127.0.0.1]) by localhost (ipx11583 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10812-02; Tue, 30 May 2006 12:21:33 +0200 (CEST) Received: from [192.168.10.25] (unknown [81.189.96.46]) by mail.hp-weidinger.at (Postfix) with ESMTP id A17B82200C8; Tue, 30 May 2006 12:21:33 +0200 (CEST) Message-ID: <447C1C96.7010403@hp-weidinger.at> Date: Tue, 30 May 2006 12:21:10 +0200 From: Hans-Peter Weidinger User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Hans-Peter Weidinger Cc: dev@apr.apache.org Subject: Re: WIN32 - Filehandles inherited when starting process with apr_proc_create References: <447BF8F0.7020606@hp-weidinger.at> In-Reply-To: <447BF8F0.7020606@hp-weidinger.at> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hp-weidinger.at X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I found the problem in the meantime It is located in proc.c in the win32 folder. The "Inherit Handles" flag for the CreateProcess call is always set to true. This causes my Problem. br Hans-Peter Hans-Peter Weidinger schrieb: > Hi all, > > i'm having a problem with a plugin written by myself that spawns a > daemon-process under > win32 with the apr_proc_create call. > > The process inherits all file-handles from the caller and locks the > files (windows-like). These > file-handles are not needed in the spawned process. > > Unfortunately the master process wants to overwrite the files later > on, but i get an error-message > that this operation cannot be performed, because the files are locked > ..... > > Is there a way to spawn the process without inheriting file-handles > from the parent process? > > Any help apreciated. > > Hans-Peter >