mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 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
|
|
@ -55,7 +55,7 @@ static gboolean source_dispatch (GSource *source, GSourceFunc callback, gpointer
|
|||
pw_loop_enter (s->loop);
|
||||
do {
|
||||
result = pw_loop_iterate (s->loop, 0);
|
||||
} while (result == -EINTR || result == -EAGAIN);
|
||||
} while (result == -EINTR);
|
||||
pw_loop_leave (s->loop);
|
||||
|
||||
if (result < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue