diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-05-24 14:03:34 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-05-24 14:03:34 +0400 |
commit | 0864dd31db882d82d57d0453c5ece4ef5af51818 (patch) | |
tree | 7dcad0158a94ba7d75da0d785f89432d85e2d043 /winsup/cygwin/pinfo.h | |
parent | 66b729b284aa08ee7969932a7cab3ea4795fce09 (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.h | 8 |
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, |