]> Cypherpunks repositories - gostls13.git/commit
os/exec: document that non-comparable writers may race
authorJustin Nuß <nuss.justin@gmail.com>
Fri, 28 Apr 2017 10:04:45 +0000 (12:04 +0200)
committerIan Lance Taylor <iant@golang.org>
Fri, 28 Apr 2017 17:57:01 +0000 (17:57 +0000)
commit585be4639b927430189fa8197985816aec3e88cd
treedbfd9b0b8ae9f43fb653ceca6109778d98a92297
parentf105c917573dea3e94edf7c7a4e64e1c934a0db2
os/exec: document that non-comparable writers may race

The comment for Cmd.Stdout and Cmd.Stderr says that it's safe to
set both to the same writer, but it doesn't say that this only
works when both writers are comparable.

This change updates the comment to explain that using a
non-comparable writer may still lead to a race.

Fixes #19804

Change-Id: I63b420034666209a2b6fab48b9047c9d07b825e2
Reviewed-on: https://go-review.googlesource.com/42052
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/exec/exec.go