Reviewers: golang-dev_googlegroups.com,
Message:
Hello golang-dev@googlegroups.com,
I'd like you to review this change to
https://code.google.com/p/go
Description:
testing: fix example test fd leak
Close the read side of the pipe.
Fixes issue 4551.
Please review this at https://codereview.appspot.com/6962049/
Affected files:
M src/pkg/testing/example.go
Index: src/pkg/testing/example.go
===================================================================
--- a/src/pkg/testing/example.go
+++ b/src/pkg/testing/example.go
@@ -45,6 +45,7 @@
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
+ defer r.Close()
os.Stdout, os.Stderr = w, w
outC := make(chan string)
go func() {