os/exec: Make sure file descriptor is not closed early.

From-SVN: r183815
This commit is contained in:
Ian Lance Taylor 2012-02-01 20:47:15 +00:00
parent fa9fe7a5a7
commit 7c275c4339
1 changed files with 1 additions and 0 deletions

View File

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