aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/netpoll.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/netpoll.go')
-rw-r--r--libgo/go/runtime/netpoll.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/runtime/netpoll.go b/libgo/go/runtime/netpoll.go
index e71ba08..6d39114 100644
--- a/libgo/go/runtime/netpoll.go
+++ b/libgo/go/runtime/netpoll.go
@@ -102,7 +102,7 @@ func netpollinited() bool {
// descriptor being used by netpoll.
func poll_runtime_isPollServerDescriptor(fd uintptr) bool {
fds := netpolldescriptor()
- if GOOS != "aix" {
+ if GOOS != "aix" && GOOS != "hurd" {
return fd == fds
} else {
// AIX have a pipe in its netpoll implementation.
@@ -178,8 +178,8 @@ func poll_runtime_pollWait(pd *pollDesc, mode int) int {
if err != 0 {
return err
}
- // As for now only Solaris and AIX use level-triggered IO.
- if GOOS == "solaris" || GOOS == "aix" {
+ // As for now only Solaris, AIX and Hurd use level-triggered IO.
+ if GOOS == "solaris" || GOOS == "aix" || GOOS == "hurd" {
netpollarm(pd, mode)
}
for !netpollblock(pd, int32(mode), false) {