aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-12-29 22:53:54 +0000
committerRichard M. Stallman1998-12-29 22:53:54 +0000
commitbf7f4e9066f5bd53ca8d7ac448b53aae3bd092bc (patch)
tree3c082d136623895dc7c15b3a3cc77f353fea7ef4
parent5c9c2c3f3365c5203c737081a31117103c47abcf (diff)
downloademacs-bf7f4e9066f5bd53ca8d7ac448b53aae3bd092bc.tar.gz
emacs-bf7f4e9066f5bd53ca8d7ac448b53aae3bd092bc.zip
(main): Call memory_warnings and uninterrupt_malloc
even when starting the dumped Emacs.
-rw-r--r--src/emacs.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 8d10e17a50d..dec656e8752 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -707,15 +707,14 @@ main (argc, argv, envp)
707 clearerr (stdin); 707 clearerr (stdin);
708 708
709#ifndef SYSTEM_MALLOC 709#ifndef SYSTEM_MALLOC
710 if (! initialized) 710 /* Arrange to get warning messages as memory fills up. */
711 { 711 memory_warnings (0, malloc_warning);
712 /* Arrange to get warning messages as memory fills up. */
713 memory_warnings (0, malloc_warning);
714 712
715 /* Arrange to disable interrupt input while malloc and friends are 713 /* Call malloc at least once, to run the initial __malloc_hook. */
716 running. */ 714 malloc (4);
717 uninterrupt_malloc (); 715
718 } 716 /* Arrange to disable interrupt input inside malloc etc. */
717 uninterrupt_malloc ();
719#endif /* not SYSTEM_MALLOC */ 718#endif /* not SYSTEM_MALLOC */
720 719
721#ifdef MSDOS 720#ifdef MSDOS