From d6e5c5c3565c3487b342a5081c8c14198aa48034 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Wed, 6 Feb 2002 07:25:01 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93277 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/server/log.c b/server/log.c index c23c6677ed..c5faec7c10 100644 --- a/server/log.c +++ b/server/log.c @@ -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 } -- 2.40.0