diff options
author | Mark Mitchell <mark@codesourcery.com> | 2006-03-27 09:44:43 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2006-03-27 09:44:43 +0000 |
commit | 075ca7ec4e94f3691541141551269e7a98f912b5 (patch) | |
tree | 2a21e1d2ffec6f677c495041f08e54e0d9ed1ac8 | |
parent | d6aad5cfa4c77b598ebc0f29ddd5bef0b4ed8b45 (diff) | |
download | gdb-075ca7ec4e94f3691541141551269e7a98f912b5.tar.gz |
* libiberty/pex-win32.c (pex_win32_exec_child): Close stdout/stderr
in parent.
-rw-r--r-- | ChangeLog.csl | 5 | ||||
-rw-r--r-- | libiberty/pex-win32.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index 6d9c7c952e2..739f40f07c4 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,8 @@ +2006-03-27 Mark Mitchell <mark@codesourcery.com> + + * libiberty/pex-win32.c (pex_win32_exec_child): Close stdout/stderr + in parent. + 2006-03-26 Nathan Sidwell <nathan@codesourcery.com> * gas/config/tc-m68k.c (m68k_init_arch): Move checking of diff --git a/libiberty/pex-win32.c b/libiberty/pex-win32.c index e3ecd2b2ed3..3a75c5be004 100644 --- a/libiberty/pex-win32.c +++ b/libiberty/pex-win32.c @@ -693,6 +693,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; } |