mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 13:38:45 +02:00
[event-loop] ignore EAGAIN
Sometimes when debugging under gdb, epoll_wait spuriously returns EAGAIN. We treat it like EINTR now.
This commit is contained in:
parent
9fd849e130
commit
e73e8cadd6
1 changed files with 2 additions and 2 deletions
|
|
@ -1252,14 +1252,14 @@ ply_event_loop_process_pending_events (ply_event_loop_t *loop)
|
|||
|
||||
if (number_of_received_events < 0)
|
||||
{
|
||||
if (errno != EINTR)
|
||||
if (errno != EINTR && errno != EAGAIN)
|
||||
{
|
||||
ply_event_loop_exit (loop, 255);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
while ((number_of_received_events < 0) && (errno == EINTR));
|
||||
while ((number_of_received_events < 0) && ((errno == EINTR) || (errno == EAGAIN)));
|
||||
|
||||
for (i = 0; i < number_of_received_events; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue