commit | c22f6202052ca84c68df4fbb16e42c826d429558 | [log] [tgz] |
---|---|---|
author | Eric Wong <e@80x24.org> | Mon Jun 27 03:56:35 2016 +0000 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Jun 27 08:33:21 2016 -0700 |
tree | 7e0c65852f2d70b021a0e290287b074d738e9886 | |
parent | 2a73b3dad09ef162eb5917e9e0d01d7c306f6b35 [diff] |
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 <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>