Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-05-29 19:51:18 +0400
committerChristopher Faylor <me@cgf.cx>2006-05-29 19:51:18 +0400
commit56057f03943946440499e70e00f5ec2274e08517 (patch)
tree18e1e717cf0f4f5caf5f4937aabe889a68b75d45
parenteb285e115c40cdb3c7d74a68379f05137559934c (diff)
* winf.h (MAXCYGWINCMDLEN): Set down size to 30000 or suffer fork errors.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/winf.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index eeab04530..34b4ff39e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-29 Christopher Faylor <cgf@timesys.com>
+
+ * winf.h (MAXCYGWINCMDLEN): Set down size to 30000 or suffer fork
+ errors.
+
2006-05-28 Christopher Faylor <cgf@timesys.com>
* sigproc.cc (child_info::proc_retry): Mask all of the bits we're
diff --git a/winsup/cygwin/winf.h b/winsup/cygwin/winf.h
index 209091468..16dde7063 100644
--- a/winsup/cygwin/winf.h
+++ b/winsup/cygwin/winf.h
@@ -13,9 +13,9 @@ details. */
bigger than this value, the stack position is suddenly moved up by 64K for
no apparent reason, which results in subsequent forks failing. Since Cygwin
processes get the full command line as argv array anyway, this only affects
- the maximum command line length of Cygwin applications which non-sensically
- have a WinMain instead of a main entry point. */
-#define MAXCYGWINCMDLEN 31767
+ the maximum command line length of Cygwin applications which nonsensically
+ have a WinMain instead of a main entry point or which use GetCommandLine. */
+#define MAXCYGWINCMDLEN 30000
#define MAXWINCMDLEN 32767
#define LINE_BUF_CHUNK (CYG_MAX_PATH * 2)