aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorYuuki Harano2020-12-27 03:13:00 +0900
committerYuuki Harano2020-12-27 03:13:00 +0900
commitb64089c37b4305a511e5ddbf02746862c7c7575e (patch)
treec6978d471e4b0b061b7cc9c46147968379aec94f /src/alloc.c
parent565d8f57d349c19d9bbb5d5d5fdacf3c70b85d42 (diff)
parent4b2ca6bfc079c66cfcf39f2f36dc139012787535 (diff)
downloademacs-b64089c37b4305a511e5ddbf02746862c7c7575e.tar.gz
emacs-b64089c37b4305a511e5ddbf02746862c7c7575e.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c8
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
732malloc_unblock_input (void) 732malloc_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 ()