axfer: return the number of file descriptors for I/O events from select(2) waiter

A call of select(2) returns error code at failure, the number of file
descriptors available I/O at success. Current implementation of
waiter abstraction for select(2) returns 0 at success and callers
can't get the number.

This commit fixes it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Takashi Sakamoto 2019-10-30 00:07:59 +09:00 committed by Jaroslav Kysela
parent d40e724905
commit 178a1f187c

View file

@ -91,7 +91,7 @@ static int select_wait_event(struct waiter_context *waiter, int timeout_msec)
pfd->revents |= POLLHUP; pfd->revents |= POLLHUP;
} }
return 0; return err;
} }
static void select_release(struct waiter_context *waiter) static void select_release(struct waiter_context *waiter)