mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 03:20:39 -08:00
(main): Call memory_warnings and uninterrupt_malloc
even when starting the dumped Emacs.
This commit is contained in:
parent
5c9c2c3f33
commit
bf7f4e9066
1 changed files with 7 additions and 8 deletions
15
src/emacs.c
15
src/emacs.c
|
|
@ -707,15 +707,14 @@ main (argc, argv, envp)
|
|||
clearerr (stdin);
|
||||
|
||||
#ifndef SYSTEM_MALLOC
|
||||
if (! initialized)
|
||||
{
|
||||
/* Arrange to get warning messages as memory fills up. */
|
||||
memory_warnings (0, malloc_warning);
|
||||
/* Arrange to get warning messages as memory fills up. */
|
||||
memory_warnings (0, malloc_warning);
|
||||
|
||||
/* Arrange to disable interrupt input while malloc and friends are
|
||||
running. */
|
||||
uninterrupt_malloc ();
|
||||
}
|
||||
/* Call malloc at least once, to run the initial __malloc_hook. */
|
||||
malloc (4);
|
||||
|
||||
/* Arrange to disable interrupt input inside malloc etc. */
|
||||
uninterrupt_malloc ();
|
||||
#endif /* not SYSTEM_MALLOC */
|
||||
|
||||
#ifdef MSDOS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue