diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-02-21 09:12:27 +0100 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2008-02-21 09:12:27 +0100 |
commit | 23f3e570ccf416530327a298bd54d59c4c5a500a (patch) | |
tree | c737df44d5c1f9a619ecb127a9c60782e1d52cc8 /seq/aplaymidi | |
parent | 849725814580a8eb08236e9bef7bbd1203cc1a9e (diff) | |
download | alsa-utils-23f3e570ccf416530327a298bd54d59c4c5a500a.tar.gz |
fix poll timeout
Use an infinite poll timeout to prevent unnecessary wakeups.
Diffstat (limited to 'seq/aplaymidi')
-rw-r--r-- | seq/aplaymidi/arecordmidi.c | 2 |
1 files changed, 1 insertions, 1 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; |