From 23f3e570ccf416530327a298bd54d59c4c5a500a Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Thu, 21 Feb 2008 09:12:27 +0100 Subject: [PATCH] fix poll timeout Use an infinite poll timeout to prevent unnecessary wakeups. --- seq/aplaymidi/arecordmidi.c | 2 +- seq/aseqdump/aseqdump.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.1