From: William A. Rowe Jr Date: Wed, 6 Feb 2002 07:25:01 +0000 (+0000) Subject: BS. This isn't an assert. This is a friggin developer's black hole. X-Git-Tag: 2.0.32~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6e5c5c3565c3487b342a5081c8c14198aa48034;p=apache 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 --- 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 }