diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-01 20:47:15 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-02-01 20:47:15 +0000 |
commit | 7c275c4339407c9864d0e163c3cc0110318b6f10 (patch) | |
tree | 94027918358e766624dc21599285f0df4de10cf5 /libgo/go | |
parent | fa9fe7a5a74938c73044fdd2ccd735bf0d703773 (diff) | |
download | gcc-7c275c4339407c9864d0e163c3cc0110318b6f10.zip gcc-7c275c4339407c9864d0e163c3cc0110318b6f10.tar.gz gcc-7c275c4339407c9864d0e163c3cc0110318b6f10.tar.bz2 |
os/exec: Make sure file descriptor is not closed early.
From-SVN: r183815
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/os/exec/exec_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/go/os/exec/exec_test.go b/libgo/go/os/exec/exec_test.go index c684980..11cfe79 100644 --- a/libgo/go/os/exec/exec_test.go +++ b/libgo/go/os/exec/exec_test.go @@ -292,6 +292,7 @@ func TestHelperProcess(*testing.T) { f.Close() } } + fd3.Close() os.Stderr.Write(bs) case "exit": n, _ := strconv.Atoi(args[0]) |