From: ian Date: Wed, 1 Feb 2012 20:47:15 +0000 (+0000) Subject: os/exec: Make sure file descriptor is not closed early. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3227fca2b33540ddf1f11cd5a9418e281a406ad9;p=thirdparty%2Fgcc.git os/exec: Make sure file descriptor is not closed early. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183815 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libgo/go/os/exec/exec_test.go b/libgo/go/os/exec/exec_test.go index c68498047faa..11cfe79c724a 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])