]> Cypherpunks repositories - gostls13.git/commit
os: don't refer directly to Sysfd in epipecheck
authorIan Lance Taylor <iant@golang.org>
Sun, 24 Sep 2017 05:00:53 +0000 (22:00 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 24 Sep 2017 14:25:50 +0000 (14:25 +0000)
commit9f7fd893dc455339233a8e081f5fb5e2c51e7b5d
treedf6f603f538003a7b7d439b98be8487d770dc026
parent14a1d934b60549e7604637fb08e65d4685146bd9
os: don't refer directly to Sysfd in epipecheck

Instead record in the File whether it is stdout/stderr. This avoids a
race between a call to epipecheck and closing the file.

Fixes #21994

Change-Id: Ic3d552ffa83402136276bcb5029ec3e6691042c2
Reviewed-on: https://go-review.googlesource.com/65750
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/os/file_unix.go