1
0
mirror of https://github.com/fumiama/water.git synced 2026-06-05 02:00:29 +08:00
Files
water/syscalls_darwin_legacy.go
2019-04-01 19:05:55 -07:00

11 lines
308 B
Go

// +build darwin,!go1.11
package water
func setNonBlock(fd int) error {
// There's a but pre-go1.11 that causes 'resource temporarily unavailable'
// error in non-blocking mode. So just skip it here. Close() won't be able
// to unblock a pending read, but that's better than being broken.
return nil
}