OSDN Git Service

os/exec: Make sure file descriptor is not closed early.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Feb 2012 20:47:15 +0000 (20:47 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Feb 2012 20:47:15 +0000 (20:47 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183815 138bc75d-0d04-0410-961f-82ee72b054a4

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])