diff options
author | Gisle Vanem <gvanem@yahoo.no> | 2014-02-07 11:15:56 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2014-02-07 11:15:56 +0200 |
commit | b981bfd197eb767e93739908e4ec49406c314894 (patch) | |
tree | 9f8ea688ca364b228229e28000fdb94dbe0e53e0 /w32/subproc/proc.h | |
parent | 88713683fed38fa5a7a649d065c73f4d945bade7 (diff) | |
download | gunmake-b981bfd197eb767e93739908e4ec49406c314894.tar.gz |
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
Diffstat (limited to 'w32/subproc/proc.h')
-rw-r--r-- | w32/subproc/proc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/w32/subproc/proc.h b/w32/subproc/proc.h index 62ebf65..2dad395 100644 --- a/w32/subproc/proc.h +++ b/w32/subproc/proc.h @@ -24,6 +24,6 @@ typedef int bool_t; #define E_NO_MEM 103 #define E_FORK 104 -extern bool_t arr2envblk(char **arr, char **envblk_out); +extern bool_t arr2envblk(char **arr, char **envblk_out, int *envsize_needed); #endif |