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,