chiark / gitweb /
journal-remote: check also for EWOULDBLOCK
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Mar 2015 01:54:14 +0000 (21:54 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Mar 2015 04:26:02 +0000 (00:26 -0400)
This matches similar code elsewhere.

src/journal-remote/journal-remote.c

index 01cfef5..e6aa072 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");