mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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:
parent
1a84664edb
commit
0a095f6266
2 changed files with 7 additions and 2 deletions
|
|
@ -175,8 +175,10 @@ static void thread_func(void *userdata) {
|
|||
pa_asyncmsgq_after_poll(u->asyncmsgq);
|
||||
|
||||
if (r < 0) {
|
||||
if (errno == EINTR)
|
||||
if (errno == EINTR) {
|
||||
pollfd.revents = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
|
|
|
|||
|
|
@ -203,8 +203,11 @@ static void thread_func(void *userdata) {
|
|||
pa_asyncmsgq_after_poll(u->asyncmsgq);
|
||||
|
||||
if (r < 0) {
|
||||
if (errno == EINTR)
|
||||
if (errno == EINTR) {
|
||||
pollfd[POLLFD_ASYNCQ].revents = 0;
|
||||
pollfd[POLLFD_FIFO].revents = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue