diff options
author | Colin Didier <didier@archos.com> | 2010-08-25 15:07:49 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-08-25 16:13:58 +0300 |
commit | 50c1564d86f8a0275e268d7cd67ad22883b248bb (patch) | |
tree | 48dd5fa05e969d15d3f6d0dbe86986e1c30a1bd4 | |
parent | 69b0d50a87f9786562de76c42045629b29304b27 (diff) | |
download | bluez-50c1564d86f8a0275e268d7cd67ad22883b248bb.tar.gz |
Don't report error for EINTR
An interrupted syscall is not an error when returning from poll().
-rw-r--r-- | audio/pcm_bluetooth.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index ff463fec9..799f17f9f 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -237,9 +237,11 @@ iter_sleep: ret = poll(fds, 2, poll_timeout); if (ret < 0) { - SNDERR("poll error: %s (%d)", strerror(errno), errno); - if (errno != EINTR) + if (errno != EINTR) { + SNDERR("poll error: %s (%d)", strerror(errno), + errno); break; + } } else if (ret > 0) { ret = (fds[0].revents) ? 0 : 1; SNDERR("poll fd %d revents %d", ret, fds[ret].revents); |