Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 1634 invoked by uid 6000); 27 Jul 1999 19:38:10 -0000 Received: (qmail 1605 invoked from network); 27 Jul 1999 19:38:05 -0000 Received: from main.aquanet.co.il (192.117.240.10) by taz.hyperreal.org with SMTP; 27 Jul 1999 19:38:05 -0000 Received: from elmar.co.il (ip3.elmar.co.il [192.117.252.19]) by main.aquanet.co.il (8.8.7/8.8.7) with ESMTP id WAA13896 for ; Tue, 27 Jul 1999 22:37:50 +0300 Message-ID: <379E1522.6016A77D@elmar.co.il> Date: Tue, 27 Jul 1999 23:22:58 +0300 From: Eli Marmor Organization: El-Mar Software Ltd. X-Mailer: Mozilla 4.08 [Hebrew Support by elmar.co.il (X11; I; SunOS 5.5 i86pc) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: cvs commit: apache-2.0/mpm/src/modules/mpm/prefork prefork.c References: <19990727193633.A41037@engelschall.com> <379E092A.7234047B@algroup.co.uk> Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Ben Laurie wrote: > > "Ralf S. Engelschall" wrote: > > > > In article <19990727133121.1636.qmail@hyperreal.org> you wrote: > > > > > Fix a warning. > > > > > > - one_process = getenv("ONE_PROCESS"); > > > + one_process = !!getenv("ONE_PROCESS"); > > > > A very interesting solution variant... :-) > > :-) I hope it didn't offend anyone... its actually quite a useful > technique where you definitely want a boolean as a result. The "technique" is: one_process = (NULL != getenv("ONE_PROCESS")); (I know that the "(" and ")" can be omitted). -- Eli Marmor