From: Clemens Ladisch Date: Thu, 21 Feb 2008 08:12:27 +0000 (+0100) Subject: fix poll timeout X-Git-Tag: v1.0.17rc1~11 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=23f3e570ccf416530327a298bd54d59c4c5a500a;p=alsa-utils.git fix poll timeout Use an infinite poll timeout to prevent unnecessary wakeups. --- diff --git a/seq/aplaymidi/arecordmidi.c b/seq/aplaymidi/arecordmidi.c index 243ec56..558fd6d 100644 --- a/seq/aplaymidi/arecordmidi.c +++ b/seq/aplaymidi/arecordmidi.c @@ -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; diff --git a/seq/aseqdump/aseqdump.c b/seq/aseqdump/aseqdump.c index c720c5f..1cf210d 100644 --- a/seq/aseqdump/aseqdump.c +++ b/seq/aseqdump/aseqdump.c @@ -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;