Received: (from majordom@localhost) by hyperreal.com (8.8.5/8.8.5) id NAA25230; Sun, 29 Jun 1997 13:30:09 -0700 (PDT) Received: from eastwood.aldigital.algroup.co.uk (eastwood.aldigital.algroup.co.uk [194.128.162.193]) by hyperreal.com (8.8.5/8.8.5) with SMTP id NAA25224 for ; Sun, 29 Jun 1997 13:30:04 -0700 (PDT) Received: from gonzo.ben.algroup.co.uk (gonzo.ben.algroup.co.uk [193.133.15.1]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with SMTP id UAA03296 for ; Sun, 29 Jun 1997 20:29:45 GMT Subject: Re: cvs commit: apache/src alloc.c buff.c http_bprintf.c http_log.c http_main.c httpd.h util_script.c To: new-httpd@apache.org Date: Sun, 29 Jun 1997 21:14:50 +0100 (BST) From: Ben Laurie In-Reply-To: <199706291919.MAA18262@hyperreal.com> from "Dean Gaudet" at Jun 29, 97 12:19:42 pm X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID: <9706292114.aa07299@gonzo.ben.algroup.co.uk> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Dean Gaudet wrote: > void log_assert(const char *szExp,const char *szFile,int nLine) > { > ! char buf[1000]; > ! > ! ap_snprintf(buf, sizeof(buf), > ! "line %d, assertion \"%s\" failed",nLine,szExp); > ! log_unixerr("assert",szFile,buf,NULL); > exit(1); > } > --- 208,219 ---- > > void log_assert(const char *szExp,const char *szFile,int nLine) > { > ! fprintf(stderr, "[%s] file %s, line %d, assertion \"%s\" failed\n", > ! get_time(), szFile, nLine, szExp); > ! #ifndef WIN32 > ! /* unix assert does an abort leading to a core dump */ > ! abort(); > ! #else > exit(1); > + #endif > } Hmmm ... actually, abort() is probably better under Win32, too (I'll have to check) - but it needs to be switchable to exit(), or you end up with loadsa dialog boxes. Cheers, Ben. -- Ben Laurie Phone: +44 (181) 994 6435 Email: ben@algroup.co.uk Freelance Consultant and Fax: +44 (181) 994 6472 Technical Director URL: http://www.algroup.co.uk/Apache-SSL A.L. Digital Ltd, Apache Group member (http://www.apache.org) London, England. Apache-SSL author