chiark / gitweb /
journal-remote: check also for EWOULDBLOCK
[elogind.git] / src / journal-remote / journal-remote.c
index 01cfef546997aa8edb7cdc9a2a0a8dee6ef3edda..e6aa07243e488820990d99127f784d3bae37a47b 100644 (file)
@@ -1022,7 +1022,7 @@ static int dispatch_raw_source_event(sd_event_source *event,
         } else if (r == -E2BIG) {
                 log_notice_errno(E2BIG, "Entry too big, skipped");
                 return 1;
-        } else if (r == -EAGAIN) {
+        } else if (r == -EAGAIN || r == -EWOULDBLOCK) {
                 return 0;
         } else if (r < 0) {
                 log_debug_errno(r, "Closing connection: %m");