Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 29725 invoked by uid 6000); 17 Sep 1998 20:53:48 -0000 Received: (qmail 29693 invoked from network); 17 Sep 1998 20:53:41 -0000 Received: from devsys.jagunet.com (206.156.208.6) by taz.hyperreal.org with SMTP; 17 Sep 1998 20:53:41 -0000 Received: (from jim@localhost) by devsys.jaguNET.com (8.9.1/jag-2.4) id QAA08417 for new-httpd@apache.org; Thu, 17 Sep 1998 16:53:32 -0400 (EDT) From: Jim Jagielski Message-Id: <199809172053.QAA08417@devsys.jaguNET.com> Subject: Re: [BUILD] rlim_t now undefined ULTRIX To: new-httpd@apache.org Date: Thu, 17 Sep 1998 16:53:31 -0400 (EDT) In-Reply-To: <13825.15815.605543.672591@zap.ml.org> from "Ben Hyde" at Sep 17, 98 02:30:41 pm X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Ben Hyde wrote: > > 48 hours ago set_rlimit et. al. were not part of Ultrix story but > today they are. This diff might to be a useful part of the cascade > that brought about this change. > > % diff {old,new}/apache-1.3/src/include/ap_config_auto.h > 35,36c35,36 > < #ifdef HAVE_SYS_RESOURCE_H > < #undef HAVE_SYS_RESOURCE_H > --- > > #ifndef HAVE_SYS_RESOURCE_H > > #define HAVE_SYS_RESOURCE_H 1 > > I've no idea what that means. > > rlim_t is defined by the usual technique, i.e. a hairball in > ap_config.c. It's setup by three (presumably disjoint mechnisms) (1) > by inference on NEED_RLIM_T, (2) explicitly and hueristicly on some > platforms, and finally (3) in a daunting conditional on the topic > of GLIBC version. > > I'd rather somebody that pretends to a tiny bit of sympathy with this > hairball decide what to do next. > Ahhh... I know what the problem is. See, the code, if it sees sys/resource.h, then it assumes that it's OK to use the rlim_t stuff. That's not totally true (for example, A/UX has this header but SysV-type limiting). The fix is to go into ap_config.h and add #undef HAVE_SYS_RESOURCE_H to the right code section for Ultrix. Of course, what this does is avoids using rlimit stuff totally with Ultrix, which seems to be the way it was before. Sound reasonable?? -- =========================================================================== Jim Jagielski ||| jim@jaguNET.com ||| http://www.jaguNET.com/ "That's no ordinary rabbit... that's the most foul, cruel and bad-tempered rodent you ever laid eyes on"