]> Cypherpunks repositories - gostls13.git/commit
os: don't wait for Close if the File was returned by NewFile
authorWèi Cōngruì <crvv.mail@gmail.com>
Thu, 14 Dec 2017 02:54:11 +0000 (10:54 +0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 14 Dec 2017 05:54:46 +0000 (05:54 +0000)
commite28a0d397b3118d518a0ef3c4cd68c0577d3d9a6
treeec43887d690a5cbf22c636acd0cbe3e67a29fe10
parentb944f91f1500b487b9d219e1b83e106cb330eb3c
os: don't wait for Close if the File was returned by NewFile

os.NewFile doesn't put the fd into non-blocking mode.
In most cases, an *os.File returned by os.NewFile is in blocking mode.

Updates #7970
Updates #21856
Updates #23111

Change-Id: Iab08432e41f7ac1b5e25aaa8855d478adb7f98ed
Reviewed-on: https://go-review.googlesource.com/83995
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/poll/fd_unix.go
src/os/pipe_test.go