summaryrefslogtreecommitdiffhomepage
path: root/rwcancel/select_default.go
diff options
context:
space:
mode:
Diffstat (limited to 'rwcancel/select_default.go')
-rw-r--r--rwcancel/select_default.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/rwcancel/select_default.go b/rwcancel/select_default.go
index dd23cda..82e07dc 100644
--- a/rwcancel/select_default.go
+++ b/rwcancel/select_default.go
@@ -1,4 +1,4 @@
-// +build !linux
+// +build !linux,!windows
/* SPDX-License-Identifier: MIT
*
@@ -10,5 +10,6 @@ package rwcancel
import "golang.org/x/sys/unix"
func unixSelect(nfd int, r *unix.FdSet, w *unix.FdSet, e *unix.FdSet, timeout *unix.Timeval) error {
- return unix.Select(nfd, r, w, e, timeout)
+ _, err := unix.Select(nfd, r, w, e, timeout)
+ return err
}