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

View File

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