summaryrefslogtreecommitdiff
path: root/src/journal-remote
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-12 21:54:14 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-13 00:26:02 -0400
commitf53f7c8fc43df4e38655f2a1f57777c5934fee06 (patch)
tree741b4191e27965c7419b712ccee8ff868a466d60 /src/journal-remote
parent0e72da6fe8671d49b4d458519f5ac7600fd04f03 (diff)
journal-remote: check also for EWOULDBLOCK
This matches similar code elsewhere.
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c
index 01cfef5469..e6aa07243e 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");