mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:15:43 +01:00
fix poll timeout
Use an infinite poll timeout to prevent unnecessary wakeups.
This commit is contained in:
parent
8497258145
commit
23f3e570cc
2 changed files with 2 additions and 2 deletions
|
@ -857,7 +857,7 @@ int main(int argc, char *argv[])
|
|||
pfds = alloca(sizeof(*pfds) * npfds);
|
||||
for (;;) {
|
||||
snd_seq_poll_descriptors(seq, pfds, npfds, POLLIN);
|
||||
if (poll(pfds, npfds, 69) < 0)
|
||||
if (poll(pfds, npfds, -1) < 0)
|
||||
break;
|
||||
do {
|
||||
snd_seq_event_t *event;
|
||||
|
|
|
@ -418,7 +418,7 @@ int main(int argc, char *argv[])
|
|||
pfds = alloca(sizeof(*pfds) * npfds);
|
||||
for (;;) {
|
||||
snd_seq_poll_descriptors(seq, pfds, npfds, POLLIN);
|
||||
if (poll(pfds, npfds, 69) < 0)
|
||||
if (poll(pfds, npfds, -1) < 0)
|
||||
break;
|
||||
do {
|
||||
snd_seq_event_t *event;
|
||||
|
|
Loading…
Reference in a new issue