aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 8396f5d4e45..aad930633d8 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -846,10 +846,13 @@ main (int argc, char **argv)
846 } 846 }
847#endif /* HAVE_PERSONALITY_LINUX32 */ 847#endif /* HAVE_PERSONALITY_LINUX32 */
848 848
849#if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) 849#if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK) && !defined (CYGWIN)
850 /* Extend the stack space available. 850 /* Extend the stack space available. Don't do that if dumping,
851 Don't do that if dumping, since some systems (e.g. DJGPP) 851 since some systems (e.g. DJGPP) might define a smaller stack
852 might define a smaller stack limit at that time. */ 852 limit at that time. And it's not needed on Cygwin, since emacs
853 is built with an 8MB stack. Moreover, the setrlimit call can
854 cause problems on Cygwin
855 (https://www.cygwin.com/ml/cygwin/2015-07/msg00096.html). */
853 if (1 856 if (1
854#ifndef CANNOT_DUMP 857#ifndef CANNOT_DUMP
855 && (!noninteractive || initialized) 858 && (!noninteractive || initialized)
@@ -883,7 +886,7 @@ main (int argc, char **argv)
883 886
884 setrlimit (RLIMIT_STACK, &rlim); 887 setrlimit (RLIMIT_STACK, &rlim);
885 } 888 }
886#endif /* HAVE_SETRLIMIT and RLIMIT_STACK */ 889#endif /* HAVE_SETRLIMIT and RLIMIT_STACK and not CYGWIN */
887 890
888 /* Record (approximately) where the stack begins. */ 891 /* Record (approximately) where the stack begins. */
889 stack_bottom = &stack_bottom_variable; 892 stack_bottom = &stack_bottom_variable;