for {
var errno int
n, errno = syscall.Read(fd.sysfile.Fd(), p)
- if (errno == syscall.EAGAIN || errno == syscall.EINTR) && fd.rdeadline >= 0 {
+ if errno == syscall.EAGAIN && fd.rdeadline >= 0 {
pollserver.WaitRead(fd)
continue
}
for {
var errno int
n, sa, errno = syscall.Recvfrom(fd.sysfd, p, 0)
- if (errno == syscall.EAGAIN || errno == syscall.EINTR) && fd.rdeadline >= 0 {
+ if errno == syscall.EAGAIN && fd.rdeadline >= 0 {
pollserver.WaitRead(fd)
continue
}
for {
var errno int
n, oobn, flags, sa, errno = syscall.Recvmsg(fd.sysfd, p, oob, 0)
- if (errno == syscall.EAGAIN || errno == syscall.EINTR) && fd.rdeadline >= 0 {
+ if errno == syscall.EAGAIN && fd.rdeadline >= 0 {
pollserver.WaitRead(fd)
continue
}
if nn == len(p) {
break
}
- if (errno == syscall.EAGAIN || errno == syscall.EINTR) && fd.wdeadline >= 0 {
+ if errno == syscall.EAGAIN && fd.wdeadline >= 0 {
pollserver.WaitWrite(fd)
continue
}
var oserr os.Error
for {
errno := syscall.Sendto(fd.sysfd, p, 0, sa)
- if (errno == syscall.EAGAIN || errno == syscall.EINTR) && fd.wdeadline >= 0 {
+ if errno == syscall.EAGAIN && fd.wdeadline >= 0 {
pollserver.WaitWrite(fd)
continue
}
for {
var errno int
errno = syscall.Sendmsg(fd.sysfd, p, oob, sa, 0)
- if (errno == syscall.EAGAIN || errno == syscall.EINTR) && fd.wdeadline >= 0 {
+ if errno == syscall.EAGAIN && fd.wdeadline >= 0 {
pollserver.WaitWrite(fd)
continue
}
return nil, os.EINVAL
}
s, sa, e = syscall.Accept(fd.sysfd)
- if e != syscall.EAGAIN && e != syscall.EINTR {
+ if e != syscall.EAGAIN {
break
}
syscall.ForkLock.RUnlock()