mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-14 04:45:42 +01:00
alsactl: avoid needless wakeups in monitor loop.
The timeout wasn't really being used for anything; disabling it should reduce idle energy consumption slightly. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
5830fc726a
commit
5fe6b86659
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ static int run_dispatcher(int epfd, int sigfd, int infd, struct list_head *srcs,
|
||||||
int count;
|
int count;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
count = epoll_wait(epfd, epev, max_ev_count, 200);
|
count = epoll_wait(epfd, epev, max_ev_count, -1);
|
||||||
if (count < 0) {
|
if (count < 0) {
|
||||||
if (errno == EINTR)
|
if (errno == EINTR)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue