diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c index 02ba2f5f9e3..3c60f685d08 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -633,13 +633,13 @@ static void | |||
| 633 | malloc_block_input (void) | 633 | malloc_block_input (void) |
| 634 | { | 634 | { |
| 635 | if (block_input_in_memory_allocators) | 635 | if (block_input_in_memory_allocators) |
| 636 | BLOCK_INPUT; | 636 | block_input (); |
| 637 | } | 637 | } |
| 638 | static void | 638 | static void |
| 639 | malloc_unblock_input (void) | 639 | malloc_unblock_input (void) |
| 640 | { | 640 | { |
| 641 | if (block_input_in_memory_allocators) | 641 | if (block_input_in_memory_allocators) |
| 642 | UNBLOCK_INPUT; | 642 | unblock_input (); |
| 643 | } | 643 | } |
| 644 | # define MALLOC_BLOCK_INPUT malloc_block_input () | 644 | # define MALLOC_BLOCK_INPUT malloc_block_input () |
| 645 | # define MALLOC_UNBLOCK_INPUT malloc_unblock_input () | 645 | # define MALLOC_UNBLOCK_INPUT malloc_unblock_input () |
| @@ -5125,7 +5125,7 @@ See Info node `(elisp)Garbage Collection'. */) | |||
| 5125 | if (garbage_collection_messages) | 5125 | if (garbage_collection_messages) |
| 5126 | message1_nolog ("Garbage collecting..."); | 5126 | message1_nolog ("Garbage collecting..."); |
| 5127 | 5127 | ||
| 5128 | BLOCK_INPUT; | 5128 | block_input (); |
| 5129 | 5129 | ||
| 5130 | shrink_regexp_cache (); | 5130 | shrink_regexp_cache (); |
| 5131 | 5131 | ||
| @@ -5242,7 +5242,7 @@ See Info node `(elisp)Garbage Collection'. */) | |||
| 5242 | dump_zombies (); | 5242 | dump_zombies (); |
| 5243 | #endif | 5243 | #endif |
| 5244 | 5244 | ||
| 5245 | UNBLOCK_INPUT; | 5245 | unblock_input (); |
| 5246 | 5246 | ||
| 5247 | check_cons_list (); | 5247 | check_cons_list (); |
| 5248 | 5248 | ||
| @@ -6393,9 +6393,10 @@ bool suppress_checking; | |||
| 6393 | void | 6393 | void |
| 6394 | die (const char *msg, const char *file, int line) | 6394 | die (const char *msg, const char *file, int line) |
| 6395 | { | 6395 | { |
| 6396 | signal (SIGABRT, SIG_DFL); | ||
| 6396 | fprintf (stderr, "\r\n%s:%d: Emacs fatal error: %s\r\n", | 6397 | fprintf (stderr, "\r\n%s:%d: Emacs fatal error: %s\r\n", |
| 6397 | file, line, msg); | 6398 | file, line, msg); |
| 6398 | fatal_error_backtrace (SIGABRT, INT_MAX); | 6399 | terminate_due_to_signal (SIGABRT, INT_MAX); |
| 6399 | } | 6400 | } |
| 6400 | #endif | 6401 | #endif |
| 6401 | 6402 | ||