]> granicus.if.org Git - apache/commitdiff
BS. This isn't an assert. This is a friggin developer's black hole.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 6 Feb 2002 07:25:01 +0000 (07:25 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 6 Feb 2002 07:25:01 +0000 (07:25 +0000)
  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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93277 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index c23c6677ed4696a3da06bbf60edf2b2b0f84f259..c5faec7c103a4610edce9f13d5aedf3b079e54e4 100644 (file)
@@ -578,14 +578,16 @@ AP_DECLARE(void) ap_log_assert(const char *szExp, const char *szFile,
     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
 }