diff --git a/src/io.c b/src/io.c index a4aca512d..0a00e6e63 100644 --- a/src/io.c +++ b/src/io.c @@ -2288,10 +2288,10 @@ _dispatch_operation_perform(dispatch_operation_t op) return DISPATCH_OP_DELIVER; } error: - if (err == EAGAIN) { + if (err == EAGAIN || err == EWOULDBLOCK) { // For disk based files with blocking I/O we should never get EAGAIN dispatch_assert(!op->fd_entry->disk); - _dispatch_op_debug("performed: EAGAIN", op); + _dispatch_op_debug("performed: EAGAIN/EWOULDBLOCK", op); if (op->direction == DOP_DIR_READ && op->total && op->channel == op->fd_entry->convenience_channel) { // Convenience read with available data completes on EAGAIN