]> Cypherpunks repositories - gostls13.git/commit
os/exec: return idempotent Closer from StdinPipe
authorAndrew Gerrand <adg@golang.org>
Thu, 29 Aug 2013 04:41:44 +0000 (14:41 +1000)
committerAndrew Gerrand <adg@golang.org>
Thu, 29 Aug 2013 04:41:44 +0000 (14:41 +1000)
commit10e2ffdf2ca657567fc1708f6387fef69a8445b6
treec2644859a14680a2557f5a8628fe800768982c7e
parent466001d05d366cbc97edfb65dc6f5cb883df0498
os/exec: return idempotent Closer from StdinPipe

Before this fix, it was always an error to use the Close method on the
io.WriteCloser obtained from Cmd.StdinPipe, as it would race with the
Close performed by Cmd.Wait.

Fixes #6270.

R=golang-dev, r, remyoudompheng, bradfitz, dsymonds
CC=golang-dev
https://golang.org/cl/13329043
src/pkg/os/exec/exec.go
src/pkg/os/exec/exec_test.go