]> git.ipfire.org Git - thirdparty/make.git/commit
Improve error reporting in the Windows port when env size is too large.
authorGisle Vanem <gvanem@yahoo.no>
Fri, 7 Feb 2014 09:15:56 +0000 (11:15 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 7 Feb 2014 09:15:56 +0000 (11:15 +0200)
commitb981bfd197eb767e93739908e4ec49406c314894
tree9f8ea688ca364b228229e28000fdb94dbe0e53e0
parent88713683fed38fa5a7a649d065c73f4d945bade7
Improve error reporting in the Windows port when env size is too large.

w32/subproc/misc.c (arr2envblk): Compute and return the size of
the environment passed to child process.

w32/subproc/sub_proc.c (process_begin): If the call to
CreateProcess failed with EINVAL, and the required environment
size was larger than 32KB, assume it's a Windows XP limitation,
and display an error message to that effect.

w32/subproc/proc.h (arr2envblk): Update prototype.

Copyright-paperwork-exempt: yes
w32/subproc/misc.c
w32/subproc/proc.h
w32/subproc/sub_proc.c