mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 04:55:41 +01:00
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:
parent
d40e724905
commit
178a1f187c
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ static int select_wait_event(struct waiter_context *waiter, int timeout_msec)
|
|||
pfd->revents |= POLLHUP;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
static void select_release(struct waiter_context *waiter)
|
||||
|
|
Loading…
Reference in a new issue