Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 75580 invoked from network); 15 Jul 2008 05:22:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jul 2008 05:22:57 -0000 Received: (qmail 17219 invoked by uid 500); 15 Jul 2008 05:22:57 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 17198 invoked by uid 500); 15 Jul 2008 05:22:57 -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 17189 invoked by uid 99); 15 Jul 2008 05:22:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 22:22:57 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 05:22:12 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 84A6E2388A3E; Mon, 14 Jul 2008 22:22:36 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r676800 - /apr/apr-util/trunk/misc/apr_reslist.c Date: Tue, 15 Jul 2008 05:22:36 -0000 To: commits@apr.apache.org From: bojan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080715052236.84A6E2388A3E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bojan Date: Mon Jul 14 22:22:35 2008 New Revision: 676800 URL: http://svn.apache.org/viewvc?rev=676800&view=rev Log: Unlock list mutex before destroying it. Manual page for pthread_mutex_destroy() states: Attempting to destroy a locked mutex results in undefined behavior. Modified: apr/apr-util/trunk/misc/apr_reslist.c Modified: apr/apr-util/trunk/misc/apr_reslist.c URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/misc/apr_reslist.c?rev=676800&r1=676799&r2=676800&view=diff ============================================================================== --- apr/apr-util/trunk/misc/apr_reslist.c (original) +++ apr/apr-util/trunk/misc/apr_reslist.c Mon Jul 14 22:22:35 2008 @@ -158,6 +158,7 @@ assert(rl->nidle == 0); assert(rl->ntotal == 0); + apr_thread_mutex_unlock(rl->listlock); apr_thread_mutex_destroy(rl->listlock); apr_thread_cond_destroy(rl->avail);