You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@locus.apache.org on 2000/06/19 22:44:28 UTC
cvs commit: apache-1.3/src/main http_log.c
stoddard 00/06/19 13:44:28
Modified: src/main http_log.c
Log:
This patch sets environment variable _EDC_ADD_ERRNO2 when opening the
logs so that when strerror(errno) is invoked to log an error, the reason
code associated with that errno will also be logged. This is only for
OS/390. The reason code is almost always necessary since the errno is
often too general. It is almost impossible to figure out what really
went wron without having the additinal reason code information.
Submitted by: Ovies Brabson
Reviewed by: Bill Stoddard
Revision Changes Path
1.85 +8 -0 apache-1.3/src/main/http_log.c
Index: http_log.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_log.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- http_log.c 2000/03/03 05:59:11 1.84
+++ http_log.c 2000/06/19 20:44:27 1.85
@@ -255,6 +255,14 @@
server_rec *virt, *q;
int replace_stderr;
+#ifdef OS390
+ /*
+ * Cause errno2 (reason code) information to be generated whenever
+ * strerror(errno) is invoked.
+ */
+ setenv("_EDC_ADD_ERRNO2", "1", 1);
+#endif
+
open_error_log(s_main, p);
replace_stderr = 1;