From f53f7c8fc43df4e38655f2a1f57777c5934fee06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 12 Mar 2015 21:54:14 -0400 Subject: [PATCH] journal-remote: check also for EWOULDBLOCK This matches similar code elsewhere. --- src/journal-remote/journal-remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index 01cfef546..e6aa07243 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -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"); -- 2.30.2