aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2017-04-24 21:49:26 -0700
committerIan Lance Taylor <iant@golang.org>2017-04-25 13:58:24 +0000
commit11c7b4491bd2cd1deb7b50433f431be9ced330db (patch)
treec07895d060a30d16a0ed8d08a3ca3da8e0cf4d84 /src/path/filepath
parent9459c03b29937d236a8b61e452cb02d01c7b8559 (diff)
downloadgo-11c7b4491bd2cd1deb7b50433f431be9ced330db.tar.xz
os: fix race between file I/O and Close
Now that the os package uses internal/poll on Unix and Windows systems, it can rely on internal/poll reference counting to ensure that the file descriptor is not closed until all I/O is complete. That was already working. This CL completes the job by not trying to modify the Sysfd field when it might still be used by the I/O routines. Fixes #7970 Change-Id: I7a3daa1a6b07b7345bdce6f0cd7164bd4eaee952 Reviewed-on: https://go-review.googlesource.com/41674 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/path/filepath')
0 files changed, 0 insertions, 0 deletions