fielding 97/02/10 03:47:25
Modified: src CHANGES util_script.c Log: Logging of errors from the call_exec routine simply went nowhere, since the logfile fd has been closed, so now we send them to stderr. Submitted by: Harald T. Alvestrand [closes PR#163] Reviewed by: Roy Fielding, Marc Slemko, Dean Gaudet, Randy Terbush Revision Changes Path 1.153 +4 -0 apache/src/CHANGES Index: CHANGES =================================================================== RCS file: /export/home/cvs/apache/src/CHANGES,v retrieving revision 1.152 retrieving revision 1.153 diff -C3 -r1.152 -r1.153 *** CHANGES 1997/02/10 11:31:30 1.152 --- CHANGES 1997/02/10 11:47:24 1.153 *************** *** 1,5 **** --- 1,9 ---- Changes with Apache 1.2b7 + *) Logging of errors from the call_exec routine simply went nowhere, + since the logfile fd has been closed, so now we send them to stderr. + [Harald T. Alvestrand] + *) Fixed core dump when DocumentRoot is a CGI. [Ben Laurie, reported by [EMAIL PROTECTED] 1.45 +6 -0 apache/src/util_script.c Index: util_script.c =================================================================== RCS file: /export/home/cvs/apache/src/util_script.c,v retrieving revision 1.44 retrieving revision 1.45 diff -C3 -r1.44 -r1.45 *** util_script.c 1997/02/10 11:31:31 1.44 --- util_script.c 1997/02/10 11:47:24 1.45 *************** *** 442,447 **** --- 442,453 ---- conf = (core_dir_config *)get_module_config(r->per_dir_config, &core_module); + /* 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, + * since that is better than allowing errors to go unnoticed. + */ + r->server->error_log = stderr; + #ifdef RLIMIT_CPU if (conf->limit_cpu != NULL) if ((setrlimit (RLIMIT_CPU, conf->limit_cpu)) != 0)