Handle EWOULDBLOCK correctly.