github.com/borderzero/water@v0.0.1/syscalls_darwin_legacy.go (about) 1 // +build darwin,!go1.11 2 3 package water 4 5 func setNonBlock(fd int) error { 6 // There's a but pre-go1.11 that causes 'resource temporarily unavailable' 7 // error in non-blocking mode. So just skip it here. Close() won't be able 8 // to unblock a pending read, but that's better than being broken. 9 return nil 10 }