os/exec: Make sure file descriptor is not closed early.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 1 Feb 2012 20:47:15 +0000 (20:47 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 1 Feb 2012 20:47:15 +0000 (20:47 +0000)
From-SVN: r183815

libgo/go/os/exec/exec_test.go

index c684980..11cfe79 100644 (file)
@@ -292,6 +292,7 @@ func TestHelperProcess(*testing.T) {
                                f.Close()
                        }
                }
+               fd3.Close()
                os.Stderr.Write(bs)
        case "exit":
                n, _ := strconv.Atoi(args[0])