aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-04-29 05:02:34 +0000
committerRichard M. Stallman1998-04-29 05:02:34 +0000
commit37e2fdd2686ff1ab6eb655e13ab8723da626e72c (patch)
treebc9d39fe31e1988354f7e309da5e75e1dada68cb
parent96214669c4709a818a345d3e9aa25767ce92232a (diff)
downloademacs-37e2fdd2686ff1ab6eb655e13ab8723da626e72c.tar.gz
emacs-37e2fdd2686ff1ab6eb655e13ab8723da626e72c.zip
(abort): Omit this definition, if NO_ABORT.
End by calling exit, to avoid warning.
-rw-r--r--src/emacs.c4
1 files changed, 3 insertions, 1 deletions
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)
267 so that GDB can return from a breakpoint here. 267 so that GDB can return from a breakpoint here.
268 MSDOS has its own definition on msdos.c */ 268 MSDOS has its own definition on msdos.c */
269 269
270#ifndef DOS_NT 270#if ! defined (DOS_NT) && ! defined (NO_ABORT)
271void 271void
272abort () 272abort ()
273{ 273{
274 kill (getpid (), SIGABRT); 274 kill (getpid (), SIGABRT);
275 /* This shouldn't be executed, but it prevents a warning. */
276 exit (1);
275} 277}
276#endif 278#endif
277 279