[PATCH 0/2] wrapper: xread/xwrite fixes for non-blocking FDs
- From
- Eric Wong <e@80x24.org>
- Date
- Jun 26, 2016, 23:21 UTC
- Message-ID
- <20160626232112.721-1-e@80x24.org>
1/2 fixes a bug introduced in commit 1079c4be0b720 ("xread: poll on non blocking fds") where the "continue" got dropped.
I noticed the 1/2 bug while working on 2/2 and intentionally triggering EAGAIN on a custom HTTP server to test 100% CPU usage. I originally blindly copied the branch from xread into xwrite without the "continue" and was greeted with a failed clone.
Eric Wong (2):
xread: retry after poll on EAGAIN/EWOULDBLOCK
xwrite: poll on non-blocking FDswrapper.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-)