Received: (from majordom@localhost) by hyperreal.com (8.8.5/8.8.5) id AAA11306; Sun, 27 Apr 1997 00:14:05 -0700 (PDT) Received: (from fielding@localhost) by hyperreal.com (8.8.5/8.8.5) id AAA11296 for apache-cvs; Sun, 27 Apr 1997 00:14:03 -0700 (PDT) Date: Sun, 27 Apr 1997 00:14:03 -0700 (PDT) From: Roy Fielding Message-Id: <199704270714.AAA11296@hyperreal.com> To: apache-cvs@hyperreal.com Subject: cvs commit: apache/src util_script.c Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org fielding 97/04/27 00:14:02 Modified: src util_script.c Log: Avoid doing a get_module_config if none of the RLIMITs are defined, since we don't need it if we are not going to do a setrlimit. Revision Changes Path 1.53 +5 -0 apache/src/util_script.c Index: util_script.c =================================================================== RCS file: /export/home/cvs/apache/src/util_script.c,v retrieving revision 1.52 retrieving revision 1.53 diff -C3 -r1.52 -r1.53 *** util_script.c 1997/04/27 06:55:52 1.52 --- util_script.c 1997/04/27 07:14:02 1.53 *************** *** 425,432 **** --- 425,437 ---- void call_exec (request_rec *r, char *argv0, char **env, int shellcmd) { + #if defined(RLIMIT_CPU) || defined(RLIMIT_NPROC) || \ + defined(RLIMIT_DATA) || defined(RLIMIT_VMEM) + core_dir_config *conf = (core_dir_config *)get_module_config(r->per_dir_config, &core_module); + + #endif /* the fd on r->server->error_log is closed, but we need somewhere to * put the error messages from the log_* functions. So, we use stderr,