mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 05:06:31 +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);
|
pfds = alloca(sizeof(*pfds) * npfds);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
snd_seq_poll_descriptors(seq, pfds, npfds, POLLIN);
|
snd_seq_poll_descriptors(seq, pfds, npfds, POLLIN);
|
||||||
if (poll(pfds, npfds, 69) < 0)
|
if (poll(pfds, npfds, -1) < 0)
|
||||||
break;
|
break;
|
||||||
do {
|
do {
|
||||||
snd_seq_event_t *event;
|
snd_seq_event_t *event;
|
||||||
|
|
|
@ -418,7 +418,7 @@ int main(int argc, char *argv[])
|
||||||
pfds = alloca(sizeof(*pfds) * npfds);
|
pfds = alloca(sizeof(*pfds) * npfds);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
snd_seq_poll_descriptors(seq, pfds, npfds, POLLIN);
|
snd_seq_poll_descriptors(seq, pfds, npfds, POLLIN);
|
||||||
if (poll(pfds, npfds, 69) < 0)
|
if (poll(pfds, npfds, -1) < 0)
|
||||||
break;
|
break;
|
||||||
do {
|
do {
|
||||||
snd_seq_event_t *event;
|
snd_seq_event_t *event;
|
||||||
|
|
Loading…
Reference in a new issue