diff options
| author | Richard M. Stallman | 1997-12-30 19:01:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-12-30 19:01:13 +0000 |
| commit | fcf01ad3f0e69ef90f7aad799bdac7990da3c4d2 (patch) | |
| tree | ed0fd1bab11291dbf9df5fed6b50f4c77438ff62 /src | |
| parent | 813dbb2d58ee1fd400c3a0e9e32b674027539c93 (diff) | |
| download | emacs-fcf01ad3f0e69ef90f7aad799bdac7990da3c4d2.tar.gz emacs-fcf01ad3f0e69ef90f7aad799bdac7990da3c4d2.zip | |
(abort): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 11 |
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 |
| 193 | int SIGUSR2_in_progress=0; | 194 | int SIGUSR2_in_progress=0; |
| 194 | SIGTYPE | 195 | SIGTYPE |
| @@ -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 | |||
| 263 | void | ||
| 264 | abort () | ||
| 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 | ||