xread: retry after poll on EAGAIN/EWOULDBLOCK
authorEric Wong <redacted>
Mon, 27 Jun 2016 03:56:35 +0000 (03:56 +0000)
committerJunio C Hamano <redacted>
Mon, 27 Jun 2016 15:33:21 +0000 (08:33 -0700)
commitc22f6202052ca84c68df4fbb16e42c826d429558
tree7e0c65852f2d70b021a0e290287b074d738e9886
parent2a73b3dad09ef162eb5917e9e0d01d7c306f6b35
xread: retry after poll on EAGAIN/EWOULDBLOCK

We should continue to loop after EAGAIN/EWOULDBLOCK as the
intent of xread is to try until there is available data,
EOF, or an unrecoverable error.

Fixes: 1079c4be0b720 ("xread: poll on non blocking fds")
Signed-off-by: Eric Wong <redacted>
Signed-off-by: Junio C Hamano <redacted>
wrapper.c
git clone https://git.99rst.org/PROJECT