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:
authorCorinna Vinschen <corinna@vinschen.de>2011-05-24 14:03:34 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-05-24 14:03:34 +0400
commit0864dd31db882d82d57d0453c5ece4ef5af51818 (patch)
tree7dcad0158a94ba7d75da0d785f89432d85e2d043 /winsup/cygwin/pinfo.h
parent66b729b284aa08ee7969932a7cab3ea4795fce09 (diff)
* pinfo.h (struct _pinfo): Reduce size of progname array slightly.
Explain why.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r--winsup/cygwin/pinfo.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h
index ed8a4aecf..72dc52237 100644
--- a/winsup/cygwin/pinfo.h
+++ b/winsup/cygwin/pinfo.h
@@ -64,8 +64,12 @@ public:
signals. */
DWORD dwProcessId;
- /* Used to spawn a child for fork(), among other things. */
- WCHAR progname[NT_MAX_PATH];
+ /* Used to spawn a child for fork(), among other things. The other
+ members of _pinfo take only a bit over 200 bytes. So cut off a
+ couple of bytes from progname to allow the _pinfo structure not
+ to exceed 64K. Otherwise it blocks another 64K block of VM for
+ the process. */
+ WCHAR progname[NT_MAX_PATH - 512];
/* User information.
The information is derived from the GetUserName system call,