From: Richard M. Stallman Date: Wed, 29 Apr 1998 05:02:34 +0000 (+0000) Subject: (abort): Omit this definition, if NO_ABORT. X-Git-Tag: emacs-20.3~1245 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=37e2fdd2686ff1ab6eb655e13ab8723da626e72c;p=emacs.git (abort): Omit this definition, if NO_ABORT. End by calling exit, to avoid warning. --- diff --git a/src/emacs.c b/src/emacs.c index 82d105a4e24..18cf9a7c2a5 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -267,11 +267,13 @@ memory_warning_signal (sig) so that GDB can return from a breakpoint here. MSDOS has its own definition on msdos.c */ -#ifndef DOS_NT +#if ! defined (DOS_NT) && ! defined (NO_ABORT) void abort () { kill (getpid (), SIGABRT); + /* This shouldn't be executed, but it prevents a warning. */ + exit (1); } #endif