File: syscalls_darwin_legacy.go

package info (click to toggle)
golang-github-songgao-water 0.0~git20200317.2b4b6d7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 232 kB
  • sloc: makefile: 21
file content (10 lines) | stat: -rw-r--r-- 308 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
// +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
}