From d851c6d478fc68d88ac192ad9499726c9e393c8f Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Mon, 23 Sep 2013 15:14:26 +1000 Subject: [PATCH] doc: mention os/exec StdinPipe change in Go 1.2 doc Fixes #6439. R=r, minux.ma CC=golang-dev https://golang.org/cl/13478045 --- doc/go1.2.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/go1.2.html b/doc/go1.2.html index fcbf5e22f5..2dc90f8368 100644 --- a/doc/go1.2.html +++ b/doc/go1.2.html @@ -823,6 +823,17 @@ are absorbed by the and the client receives an empty body as required by the HTTP specification. +
  • +The os/exec package's +Cmd.StdinPipe method +returns an io.WriteCloser, but has changed its concrete +implementation from *os.File to an unexported type that embeds +*os.File, and it is now safe to close the returned value. +Before Go 1.2, there was an unavoidable race that this change fixes. +Code that needs access to the methods of *os.File can use an +interface type assertion, such as wc.(interface{ Sync() error }). +
  • +
  • The runtime package relaxes the constraints on finalizer functions in -- 2.50.0