diff options
author | Mark Mitchell <mark@codesourcery.com> | 2006-03-27 09:48:38 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2006-03-27 09:48:38 +0000 |
commit | 4bdb99f2bb46664f77f34d6e736a85ed4b584923 (patch) | |
tree | 1ed50979d7a6e3de52f1910521e3e7525f89b16b | |
parent | 3576475e3940ecba28967b813a67d6dd5c58dbc9 (diff) | |
download | binutils-redhat-4bdb99f2bb46664f77f34d6e736a85ed4b584923.tar.gz |
* libiberty/pex-win32.c (pex_win32_exec_child): Close stdout/stderr
in parent.
-rw-r--r-- | libiberty/pex-win32.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index b1295980ef..046f393c6d 100644 --- a/libiberty/pex-win32.c +++ b/libiberty/pex-win32.c @@ -695,6 +695,13 @@ pex_win32_exec_child (struct pex_obj *obj ATTRIBUTE_UNUSED, int flags, *errmsg = "CreateProcess"; } + /* Close the standard output and standard error handles in the + parent. */ + if (out != STDOUT_FILENO) + obj->funcs->close (obj, out); + if (errdes != STDERR_FILENO) + obj->funcs->close (obj, errdes); + return pid; } |