diff options
author | Andrew Gerrand <adg@golang.org> | 2013-09-23 15:14:26 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2013-09-23 15:14:26 +1000 |
commit | ffbe58470d450a2fc28d0e46a977ea48dd0e220f (patch) | |
tree | 2aa79535c93d4c2ccf6b41d42d905645aa7481e4 /doc/go1.2.html | |
parent | e2b18078006ced9c4f896b031802e2cc602a24e9 (diff) | |
download | go-ffbe58470d450a2fc28d0e46a977ea48dd0e220f.tar.gz |
doc: mention os/exec StdinPipe change in Go 1.2 doc
Fixes issue 6439.
R=r, minux.ma
CC=golang-dev
https://codereview.appspot.com/13478045
Diffstat (limited to 'doc/go1.2.html')
-rw-r--r-- | doc/go1.2.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/go1.2.html b/doc/go1.2.html index fcbf5e22f..2dc90f836 100644 --- a/doc/go1.2.html +++ b/doc/go1.2.html @@ -824,6 +824,17 @@ and the client receives an empty body as required by the HTTP specification. </li> <li> +The <a href="/pkg/os/exec/"><code>os/exec</code></a> package's +<a href="/pkg/os/exec/#Cmd.StdinPipe"><code>Cmd.StdinPipe</code></a> method +returns an <code>io.WriteCloser</code>, but has changed its concrete +implementation from <code>*os.File</code> to an unexported type that embeds +<code>*os.File</code>, 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 <code>*os.File</code> can use an +interface type assertion, such as <code>wc.(interface{ Sync() error })</code>. +</li> + +<li> The <a href="/pkg/runtime/"><code>runtime</code></a> package relaxes the constraints on finalizer functions in <a href="/pkg/runtime/#SetFinalizer"><code>SetFinalizer</code></a>: the |