Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1831D7DF for ; Tue, 18 Sep 2012 22:15:38 +0000 (UTC) Received: (qmail 93653 invoked by uid 500); 18 Sep 2012 22:15:38 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 93592 invoked by uid 500); 18 Sep 2012 22:15:38 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 93582 invoked by uid 99); 18 Sep 2012 22:15:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 22:15:37 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [194.242.35.75] (HELO dns-factory.at) (194.242.35.75) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 22:15:30 +0000 Received: from [172.17.100.7] apache@gknw.net [37.201.243.102] by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare via secured & encrypted transport (TLS); Wed, 19 Sep 2012 00:14:59 +0200 Message-ID: <5058F244.10202@apache.org> Date: Wed, 19 Sep 2012 00:14:28 +0200 From: Guenter Knauf User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.28) Gecko/20120306 Lightning/1.0b2 Thunderbird/3.1.20 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r1386880 - in /httpd/httpd/trunk: docs/log-message-tags/next-number docs/manual/mod/mod_slotmem_plain.xml docs/manual/mod/mod_slotmem_shm.xml include/ap_slotmem.h modules/slotmem/mod_slotmem_plain.c modules/slotmem/mod_slotmem_shm.c References: <20120917222629.950BC2388A3F@eris.apache.org> In-Reply-To: <20120917222629.950BC2388A3F@eris.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Jim, your commit below introduced a comment close tag which seems misplaced ..= =2E I did just remove this with r1387389 - if you intended to comment out=20 something there then please review ... G=C3=BCn. Am 18.09.2012 00:26, schrieb jim@apache.org: > Author: jim > Date: Mon Sep 17 22:26:28 2012 > New Revision: 1386880 > > URL: http://svn.apache.org/viewvc?rev=3D1386880&view=3Drev > Log: > Allow for a forced grab of a slotmem slot. > > Modified: > httpd/httpd/trunk/docs/log-message-tags/next-number > httpd/httpd/trunk/docs/manual/mod/mod_slotmem_plain.xml > httpd/httpd/trunk/docs/manual/mod/mod_slotmem_shm.xml > httpd/httpd/trunk/include/ap_slotmem.h > httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c > httpd/httpd/trunk/modules/slotmem/mod_slotmem_shm.c > > Modified: httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c > URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/slotmem/mod= _slotmem_plain.c?rev=3D1386880&r1=3D1386879&r2=3D1386880&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c (original) > +++ httpd/httpd/trunk/modules/slotmem/mod_slotmem_plain.c Mon Sep 17 22= :26:28 2012 =2E.. > @@ -251,13 +257,31 @@ static apr_status_t slotmem_grab(ap_slot > } > } > if (i>=3D slot->num) { > - return APR_ENOSHMAVAIL; > + return APR_EINVAL; > } > *inuse =3D 1; > *id =3D i; > return APR_SUCCESS; > } > > +*/ ^ > +static apr_status_t slotmem_fgrab(ap_slotmem_instance_t *slot, unsigne= d int id) > +{ > + unsigned int i; > + char *inuse; > + > + if (!slot) { > + return APR_ENOSHMAVAIL; > + } > + > + if (id>=3D slot->num) { > + return APR_EINVAL; > + } > + inuse =3D slot->inuse + id; > + *inuse =3D 1; > + return APR_SUCCESS; > +} > + > static apr_status_t slotmem_release(ap_slotmem_instance_t *slot, unsi= gned int id) > { > char *inuse;