comparison src/emacs.c @ 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 2ce6f0e5425b
children 89d03805f45a
comparison
equal deleted inserted replaced
21831:6b659713b90b 21832:daf559874709
265 265
266 /* We define abort, rather than using it from the library, 266 /* We define abort, rather than using it from the library,
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)
271 void 271 void
272 abort () 272 abort ()
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
278 280
279 /* Code for dealing with Lisp access to the Unix command line */ 281 /* Code for dealing with Lisp access to the Unix command line */