# HG changeset patch # User Richard M. Stallman # Date 868691246 0 # Node ID 231be0c398fd85247497ecb636c0c6d6fcdebf98 # Parent 9d6149f4c762100c4a4d64abd90745e60f714d4c (main): Use setrlimit only if RLIMIT_STACK. (main) [DOUG_LEA_MALLOC]: Call r_alloc_reinit when restarting a dumped Emacs. diff -r 9d6149f4c762 -r 231be0c398fd src/emacs.c --- 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;