* pinfo.h (struct _pinfo): Reduce size of progname array slightly.
Explain why.
This commit is contained in:
parent
66b729b284
commit
0864dd31db
|
@ -1,3 +1,8 @@
|
||||||
|
2011-05-24 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* pinfo.h (struct _pinfo): Reduce size of progname array slightly.
|
||||||
|
Explain why.
|
||||||
|
|
||||||
2011-05-23 Eric Blake <eblake@redhat.com>
|
2011-05-23 Eric Blake <eblake@redhat.com>
|
||||||
|
|
||||||
* errno.cc (strerror): Print unknown errno as int.
|
* errno.cc (strerror): Print unknown errno as int.
|
||||||
|
|
|
@ -64,8 +64,12 @@ public:
|
||||||
signals. */
|
signals. */
|
||||||
DWORD dwProcessId;
|
DWORD dwProcessId;
|
||||||
|
|
||||||
/* Used to spawn a child for fork(), among other things. */
|
/* Used to spawn a child for fork(), among other things. The other
|
||||||
WCHAR progname[NT_MAX_PATH];
|
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.
|
/* User information.
|
||||||
The information is derived from the GetUserName system call,
|
The information is derived from the GetUserName system call,
|
||||||
|
|
Loading…
Reference in New Issue