]> Cypherpunks repositories - gostls13.git/commit
internal/poll: simplify execIO
authorqmuntal <quimmuntal@gmail.com>
Wed, 2 Apr 2025 08:43:47 +0000 (10:43 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 4 Apr 2025 15:09:07 +0000 (08:09 -0700)
commitd164776615f75105c6f988900d798a0f476c4668
tree7cb4d2968f836a9d5491d98a915c4b845cca0fe9
parent8969771cc3ceed634844dd6c911f3a5439424a97
internal/poll: simplify execIO

execIO has multiple return paths and multiple places where error is
mangled. This CL simplifies the function by just having one return
path.

Some more tests have been added to ensure that the error handling
is done correctly.

Updates #19098.

Change-Id: Ida0b1e85d4d123914054306e5bef8da94408b91c
Reviewed-on: https://go-review.googlesource.com/c/go/+/662215
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/internal/poll/export_windows_test.go [deleted file]
src/internal/poll/fd_windows.go
src/internal/poll/fd_windows_test.go
src/internal/poll/sendfile_windows.go
src/internal/syscall/windows/nonblocking_windows.go [new file with mode: 0644]
src/internal/syscall/windows/syscall_windows.go