From: Andrew Gerrand Date: Mon, 23 Sep 2013 05:14:26 +0000 (+1000) Subject: doc: mention os/exec StdinPipe change in Go 1.2 doc X-Git-Tag: go1.2rc2~143 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d851c6d478fc68d88ac192ad9499726c9e393c8f;p=gostls13.git 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 --- 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