Skip to content

Commit 5e468a9

Browse files
authored
Merge pull request #3976 from clumens/gio-eagain
Low: libcrmcommon: Loop on EAGAIN in mainloop_gio_callback.
2 parents 40a2370 + 020be3d commit 5e468a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/common/mainloop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,8 @@ mainloop_gio_callback(GIOChannel *gio, GIOCondition condition, gpointer data)
747747

748748
pcmk__ipc_free_client_buffer(client->ipc);
749749

750-
} while ((rc == G_SOURCE_CONTINUE) && (read_rc > 0) && --max > 0);
750+
} while ((rc == G_SOURCE_CONTINUE) && (--max > 0)
751+
&& ((read_rc > 0) || (read_rc == -EAGAIN)));
751752

752753
} else {
753754
crm_trace("New I/O event for %s after I/O condition %d",

0 commit comments

Comments
 (0)