aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-12-30 19:01:13 +0000
committerRichard M. Stallman1997-12-30 19:01:13 +0000
commitfcf01ad3f0e69ef90f7aad799bdac7990da3c4d2 (patch)
treeed0fd1bab11291dbf9df5fed6b50f4c77438ff62
parent813dbb2d58ee1fd400c3a0e9e32b674027539c93 (diff)
downloademacs-fcf01ad3f0e69ef90f7aad799bdac7990da3c4d2.tar.gz
emacs-fcf01ad3f0e69ef90f7aad799bdac7990da3c4d2.zip
(abort): New function.
-rw-r--r--src/emacs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 359e91523fe..a54c8345626 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -189,6 +189,7 @@ handle_USR1_signal (sig)
189 SIGUSR1_in_progress = 0; 189 SIGUSR1_in_progress = 0;
190 } 190 }
191} 191}
192
192#ifdef SIGUSR2 193#ifdef SIGUSR2
193int SIGUSR2_in_progress=0; 194int SIGUSR2_in_progress=0;
194SIGTYPE 195SIGTYPE
@@ -255,6 +256,16 @@ memory_warning_signal (sig)
255 force_auto_save_soon (); 256 force_auto_save_soon ();
256} 257}
257#endif 258#endif
259
260/* We define abort, rather than using it from the library,
261 so that GDB can return from a breakpoint here. */
262
263void
264abort ()
265{
266 kill (getpid (), SIGABRT);
267}
268
258 269
259/* Code for dealing with Lisp access to the Unix command line */ 270/* Code for dealing with Lisp access to the Unix command line */
260 271