You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/02/06 08:25:01 UTC
cvs commit: httpd-2.0/server log.c
wrowe 02/02/05 23:25:01
Modified: server log.c
Log:
BS. This isn't an assert. This is a friggin developer's black hole.
Suggesion: Netware needs to implement the appropriate abort() style
fn. If there is none on Netware, this is non-portable, undebuggable,
and will be yanked by tommorow evening.
Revision Changes Path
1.105 +6 -4 httpd-2.0/server/log.c
Index: log.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/log.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- log.c 24 Jan 2002 04:31:01 -0000 1.104
+++ log.c 6 Feb 2002 07:25:01 -0000 1.105
@@ -578,14 +578,16 @@
char time_str[APR_CTIME_LEN];
apr_ctime(time_str, apr_time_now());
- ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
+ ap_log_error(APLOG_MARK, APLOG_CRIT | APLOG_NOERRNO, 0, NULL,
"[%s] file %s, line %d, assertion \"%s\" failed",
time_str, szFile, nLine, szExp);
-#if !defined(WIN32) && !defined(NETWARE)
+#if defined(WIN32)
+ DebugBreak();
+#elif defined(NETWARE)
+ exit(1);
+#else
/* unix assert does an abort leading to a core dump */
abort();
-#else
- exit(1);
#endif
}