From commits-return-6859-apmail-apr-commits-archive=apr.apache.org@apr.apache.org Sun Jul 03 04:01:06 2005 Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 55048 invoked from network); 3 Jul 2005 04:01:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2005 04:01:06 -0000 Received: (qmail 53466 invoked by uid 500); 3 Jul 2005 04:01:05 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 53432 invoked by uid 500); 3 Jul 2005 04:01:05 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 53419 invoked by uid 99); 3 Jul 2005 04:01:05 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 02 Jul 2005 21:01:05 -0700 Received: (qmail 54923 invoked by uid 65534); 3 Jul 2005 04:01:01 -0000 Message-ID: <20050703040101.54920.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r208883 - /apr/apr/branches/0.9.x/threadproc/os2/proc.c Date: Sun, 03 Jul 2005 04:01:01 -0000 To: commits@apr.apache.org From: bjh@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: bjh Date: Sat Jul 2 21:00:59 2005 New Revision: 208883 URL: http://svn.apache.org/viewcvs?rev=208883&view=rev Log: OS/2: Fix crash in apr_proc_create with non-shell type process creation where the .exe extension is not given. Was trying to close an apr_file_t that had failed to open, causing a segfault. Backport from trunk of r208879. Modified: apr/apr/branches/0.9.x/threadproc/os2/proc.c Modified: apr/apr/branches/0.9.x/threadproc/os2/proc.c URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/threadproc/os2/proc.c?rev=208883&r1=208882&r2=208883&view=diff ============================================================================== --- apr/apr/branches/0.9.x/threadproc/os2/proc.c (original) +++ apr/apr/branches/0.9.x/threadproc/os2/proc.c Sat Jul 2 21:00:59 2005 @@ -368,8 +368,9 @@ interpreter[0] = 0; } } + + apr_file_close(progfile); } - apr_file_close(progfile); } i = 0;