Pull upstream commit to not set `errno' to ETIME (which does not exist on FreeBSD) and preserve the original EINTR instead. Reported by: portscout