-
- Downloads
os: consistently return ErrClosed for closed file
Catch all the cases where a file operation might return ErrFileClosing, and convert to ErrClosed. Use a new method for the conversion, which permits us to remove some KeepAlive calls. Change-Id: I584178f297efe6cb86f3090b2341091b412f1041 Reviewed-on: https://go-review.googlesource.com/41793 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by:Brad Fitzpatrick <bradfitz@golang.org>
Showing
- src/os/file.go 18 additions, 22 deletionssrc/os/file.go
- src/os/file_posix.go 5 additions, 11 deletionssrc/os/file_posix.go
- src/os/file_unix.go 3 additions, 0 deletionssrc/os/file_unix.go
- src/os/file_windows.go 3 additions, 0 deletionssrc/os/file_windows.go
- src/os/os_test.go 20 additions, 0 deletionssrc/os/os_test.go
- src/os/pipe_test.go 31 additions, 10 deletionssrc/os/pipe_test.go
Please register or sign in to comment