Mercurial > emacs
changeset 18758:231be0c398fd
(main): Use setrlimit only if RLIMIT_STACK.
(main) [DOUG_LEA_MALLOC]: Call r_alloc_reinit when restarting a dumped Emacs.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 12 Jul 1997 07:07:26 +0000 |
parents | 9d6149f4c762 |
children | 7b452f99a32f |
files | src/emacs.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/emacs.c Sat Jul 12 07:04:43 1997 +0000 +++ b/src/emacs.c Sat Jul 12 07:07:26 1997 +0000 @@ -501,6 +501,7 @@ { malloc_set_state (malloc_state_ptr); free (malloc_state_ptr); + r_alloc_reinit (); } #endif @@ -577,7 +578,7 @@ #endif /* LINK_CRTL_SHARE */ #endif /* VMS */ -#ifdef HAVE_SETRLIMIT +#if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) /* Extend the stack space available. */ if (!getrlimit (RLIMIT_STACK, &rlim)) { @@ -598,7 +599,7 @@ setrlimit (RLIMIT_STACK, &rlim); } -#endif +#endif /* HAVE_SETRLIMIT and RLIMIT_STACK */ /* Record (approximately) where the stack begins. */ stack_bottom = &stack_bottom_variable;