From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9880 invoked from network); 12 Feb 2003 11:11:13 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 Feb 2003 11:11:13 -0000 Received: (qmail 15807 invoked by alias); 12 Feb 2003 11:09:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18227 Received: (qmail 15798 invoked from network); 12 Feb 2003 11:09:30 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 12 Feb 2003 11:09:30 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 12 Feb 2003 11:9:30 -0000 Received: from exchange01.csr.com (unverified) by (Content Technologies SMTPRS 4.2.1) with ESMTP id for ; Wed, 12 Feb 2003 11:16:07 +0000 Received: from csr.com (tinky-winky.csr.com [192.168.144.127]) by exchange01.csr.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id DQ47MKGW; Wed, 12 Feb 2003 11:10:08 -0000 To: zsh-workers@sunsite.dk Subject: Re: PATCH: maxfilelocks in ulimit output In-reply-to: "Clint Adams"'s message of "Tue, 11 Feb 2003 23:03:38 EST." <20030212040338.GA19602@scowler.net> Date: Wed, 12 Feb 2003 11:09:31 +0000 Message-ID: <11929.1045048171@csr.com> From: Peter Stephenson Clint Adams wrote: > This works for me; untested on any other platform. > -# if defined(RLIMIT_RSS) && (!defined(RLIMIT_VMEM) || RLIMIT_VMEM != RLIMIT_ > RSS) > +# ifdef RLIMIT_RSS (Note there's another similar case statement further down in another function. I know because I missed it on a previous attempt.) Doesn't this run the risk of duplicate case labels? This is the problem that caused this fuss in the first place. We can't rely on the compiler being able to handle them gracefully (I don't know what the C standard says, but the statement seems to hold in any case). -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************