diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 51088eb0e77..42d096ef2ae 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -664,7 +664,7 @@ display_malloc_warning (void) | |||
| 664 | call3 (intern ("display-warning"), | 664 | call3 (intern ("display-warning"), |
| 665 | intern ("alloc"), | 665 | intern ("alloc"), |
| 666 | build_string (pending_malloc_warning), | 666 | build_string (pending_malloc_warning), |
| 667 | intern ("emergency")); | 667 | intern (":emergency")); |
| 668 | pending_malloc_warning = 0; | 668 | pending_malloc_warning = 0; |
| 669 | } | 669 | } |
| 670 | 670 | ||
| @@ -732,7 +732,11 @@ static void | |||
| 732 | malloc_unblock_input (void) | 732 | malloc_unblock_input (void) |
| 733 | { | 733 | { |
| 734 | if (block_input_in_memory_allocators) | 734 | if (block_input_in_memory_allocators) |
| 735 | unblock_input (); | 735 | { |
| 736 | int err = errno; | ||
| 737 | unblock_input (); | ||
| 738 | errno = err; | ||
| 739 | } | ||
| 736 | } | 740 | } |
| 737 | # define MALLOC_BLOCK_INPUT malloc_block_input () | 741 | # define MALLOC_BLOCK_INPUT malloc_block_input () |
| 738 | # define MALLOC_UNBLOCK_INPUT malloc_unblock_input () | 742 | # define MALLOC_UNBLOCK_INPUT malloc_unblock_input () |