mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-20 08:56:56 -05:00
don't handle EINTR and EAGAIN as the same
EAGAIN means a non-blocking operation would block and we should not try again right away but leave the loop and wait instead. See #358
This commit is contained in:
parent
e094640c7b
commit
c43026d93e
8 changed files with 10 additions and 10 deletions
|
|
@ -1661,7 +1661,7 @@ static void io_event_cb(pa_mainloop_api*ea, pa_io_event* e, int fd, pa_io_event_
|
|||
pw_loop_enter(c->loop);
|
||||
do {
|
||||
res = pw_loop_iterate(c->loop, 0);
|
||||
} while (res == -EINTR || res == -EAGAIN);
|
||||
} while (res == -EINTR);
|
||||
pw_loop_leave(c->loop);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue