diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-16 20:12:12 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-16 20:12:12 +0000 |
commit | b3ecdcf438d47d78e8a6b029c209ebf6f2fea7fe (patch) | |
tree | 3eda775b8dac04c5c96e1335eb3223e13227cc75 /winsup/cygwin/spawn.cc | |
parent | e4d981b9578d322d529b65aea55964f2249b5953 (diff) | |
download | cygnal-b3ecdcf438d47d78e8a6b029c209ebf6f2fea7fe.tar.gz cygnal-b3ecdcf438d47d78e8a6b029c209ebf6f2fea7fe.tar.bz2 cygnal-b3ecdcf438d47d78e8a6b029c209ebf6f2fea7fe.zip |
* environ.cc (build_env): Use "kilo"bytes not "mega"bytes. Return immediately
on error.
* spawn.cc (spawn_guts): Set return value to -1 on error from build_env.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 149a25999..503fad148 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -627,6 +627,7 @@ spawn_guts (const char * prog_arg, const char *const *argv, if (!moreinfo->envp || !envblock) { set_errno (E2BIG); + res = -1; goto out; } ciresrv.set (chtype, real_path.iscygexec ()); |