Properly initialize all revents on EINTR

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1508 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2007-07-12 16:15:35 +00:00
parent 1a84664edb
commit 0a095f6266
2 changed files with 7 additions and 2 deletions

View file

@ -175,8 +175,10 @@ static void thread_func(void *userdata) {
pa_asyncmsgq_after_poll(u->asyncmsgq); pa_asyncmsgq_after_poll(u->asyncmsgq);
if (r < 0) { if (r < 0) {
if (errno == EINTR) if (errno == EINTR) {
pollfd.revents = 0;
continue; continue;
}
pa_log("poll() failed: %s", pa_cstrerror(errno)); pa_log("poll() failed: %s", pa_cstrerror(errno));
goto fail; goto fail;

View file

@ -203,8 +203,11 @@ static void thread_func(void *userdata) {
pa_asyncmsgq_after_poll(u->asyncmsgq); pa_asyncmsgq_after_poll(u->asyncmsgq);
if (r < 0) { if (r < 0) {
if (errno == EINTR) if (errno == EINTR) {
pollfd[POLLFD_ASYNCQ].revents = 0;
pollfd[POLLFD_FIFO].revents = 0;
continue; continue;
}
pa_log("poll() failed: %s", pa_cstrerror(errno)); pa_log("poll() failed: %s", pa_cstrerror(errno));
goto fail; goto fail;