changeset 21832:daf559874709

(abort): Omit this definition, if NO_ABORT. End by calling exit, to avoid warning.
author Richard M. Stallman <rms@gnu.org>
date Wed, 29 Apr 1998 05:02:34 +0000
parents 6b659713b90b
children a9d4f3acae4e
files src/emacs.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Wed Apr 29 04:43:08 1998 +0000
+++ b/src/emacs.c	Wed Apr 29 05:02:34 1998 +0000
@@ -267,11 +267,13 @@
    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