]> Cypherpunks.ru repositories - gostls13.git/commit
os, internal/poll: loop on EINTR for all file syscalls
authorIan Lance Taylor <iant@golang.org>
Tue, 18 Aug 2020 23:46:24 +0000 (16:46 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 19 Aug 2020 21:49:56 +0000 (21:49 +0000)
commit6b420169d798c7ebe733487b56ea5c3fa4aab5ce
tree9f9e791d75c363b7f25529b1f408d50e8e03274d
parent18239be10a0b5caa1b3222b228ff590b1c036382
os, internal/poll: loop on EINTR for all file syscalls

When using a FUSE file system, any system call that touches the file
system can return EINTR.

Fixes #40846

Change-Id: I25d32da22cec08dea81ab297291a85ad72db2df7
Reviewed-on: https://go-review.googlesource.com/c/go/+/249178
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
12 files changed:
src/internal/poll/fd_fsync_posix.go
src/internal/poll/fd_opendir_darwin.go
src/internal/poll/fd_posix.go
src/internal/poll/fd_unix.go
src/os/dir_darwin.go
src/os/file.go
src/os/file_plan9.go
src/os/file_posix.go
src/os/file_unix.go
src/os/getwd.go
src/os/stat_unix.go
src/runtime/trace/trace_stack_test.go