diff options
| author | Ken Brown | 2015-07-06 15:08:47 -0400 |
|---|---|---|
| committer | Ken Brown | 2015-07-06 15:10:38 -0400 |
| commit | b81507813a404a9984fd3e8db4dcc1d814d1667b (patch) | |
| tree | db0168426a9384f1644a011de4831c7352446be3 /src | |
| parent | 824fc04b660631e7ff976a36b7f70f7c3d5fc181 (diff) | |
| download | emacs-b81507813a404a9984fd3e8db4dcc1d814d1667b.tar.gz emacs-b81507813a404a9984fd3e8db4dcc1d814d1667b.zip | |
* src/emacs.c (main): Don't increase the stack size on Cygwin
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 13 |
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; |