Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1FBF6107F1 for ; Sat, 16 May 2015 17:08:02 +0000 (UTC) Received: (qmail 3105 invoked by uid 500); 16 May 2015 17:08:01 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 3067 invoked by uid 500); 16 May 2015 17:08:01 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 3056 invoked by uid 99); 16 May 2015 17:08:01 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 May 2015 17:08:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3152D1827F4 for ; Sat, 16 May 2015 17:08:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.739 X-Spam-Level: X-Spam-Status: No, score=0.739 tagged_above=-999 required=6.31 tests=[KAM_INFOUSMEBIZ=0.75, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id wcYn37C80O4f for ; Sat, 16 May 2015 17:08:00 +0000 (UTC) Received: from mx.lenk.info (mail.lenk.info [188.40.85.232]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id C3ED643C83 for ; Sat, 16 May 2015 17:07:59 +0000 (UTC) Received: from [192.168.77.232] (port=39815 helo=mailstore.lenk.local) by mx.lenk.info with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1YtfYv-0001Sy-0l; Sat, 16 May 2015 19:07:45 +0200 Received: from [192.168.2.43] (gateway.home.lenk.info [213.144.156.188]) by mailstore.lenk.local (Postfix) with ESMTPSA id 6C82E1A0E4; Sat, 16 May 2015 19:07:42 +0200 (CEST) Message-ID: <55577A2F.9090600@lenk.info> Date: Sat, 16 May 2015 19:11:11 +0200 From: Micha Lenk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0 MIME-Version: 1.0 To: Yann Ylavic CC: modules-dev@httpd.apache.org Subject: Re: How to wait on a global lock with timeout References: <54295C2F.80307@lenk.info> <542AF4CB.90006@lenk.info> <55125380.7010408@lenk.info> <555760B6.4070802@lenk.info> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi Yann, thanks for your explanation. Am 16.05.2015 um 19:05 schrieb Yann Ylavic: >> Trying to get locked mutex... timed out after 1 second (expected) >> Child trying to unlock the mutex got 1 (unexpected) >> Trying to get locked mutex... timed out after 2 seconds (unexpected) >> >> Did I do anything wrong? > > A mutex must be unlocked by the thread which locked it (error 1 is EPERM). Ok, makes sense to me. Regards, Micha