Received: (from majordom@localhost) by hyperreal.com (8.8.5/8.8.5) id LAA15259; Wed, 25 Jun 1997 11:39:33 -0700 (PDT) Received: from ias1.iacnet.com (ias1.iacnet.com [140.244.1.69]) by hyperreal.com (8.8.5/8.8.5) with ESMTP id LAA15230 for ; Wed, 25 Jun 1997 11:39:29 -0700 (PDT) Received: from circus.med.iacnet.com by ias1.iacnet.com (PMDF V5.0-5 #16455) id <01IKHRF5FG8G00JOKH@ias1.iacnet.com> for apache-bugdb@apache.org; Wed, 25 Jun 1997 14:37:25 -0500 (EST) Received: by circus.med.iacnet.com ((IBM OS/2 SENDMAIL VERSION 1.3.14/1.0) id AA2089; Wed, 25 Jun 1997 14:35:58 -0400 Received: from IACNET with "Lotus Notes Mail Gateway for SMTP" id 49D1C46611801986852564C1006513D4; Wed, 25 Jun 1997 14:35:54 +0000 Date: Wed, 25 Jun 1997 14:33:04 +0000 From: George Carrette Subject: Re: config/783: RLimitMEM, RLimitCPU, hard limit ignored when userid is not 0 To: Dean Gaudet Cc: George Carrette , apache-bugdb Message-id: <9706251835.AA2089@circus.med.iacnet.com> MIME-version: 1.0 Content-type: Text/Plain Content-transfer-encoding: 7BIT Sender: apache-bugdb-owner@apache.org Precedence: bulk I think the reason the check for userid == 0 was originally in the code was that setrlimit will fail completely, failing even to set the soft limit, if you call it with a structure which will attempt to set the hard limit upward. So whoever put the check in was trying to be nice and at least allow some limit to be set. That is why I left the check in, and simply made the algorithm consistent with the comment and error message. By the way, I've got another bug fix, not yet read, to RLimitMEM and RLimitCPU. The bug is that these are only in effect for cgi scripts and server side include exec's. But I've been using the Perl Module stuff, with people who had buggy perl code. So I've made a modification that allows you to configure RLimit's inside of child_main. It is really essential for general use of Perl Module when debugging Perl code that behaves differently in the slightly different environment. Anyway, I've got to clean that stuff up first.