mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
Don't make the check for EWOULDBLOCK zos-specific. Most platforms define EAGAIN and EWOULDBLOCK with the same underlying value. Thus, the additional check will be a no-op on them. On platforms where EAGAIN and EWOULDBLOCK have different underlying values, we probably want to check both as well. As pointed out by Michael Munday in CL 264028. Change-Id: Id3404fc4440c66a3484975b4c94b4ebb788b80a1 Reviewed-on: https://go-review.googlesource.com/c/net/+/295569 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>