journal-remote: check also for EWOULDBLOCK

This matches similar code elsewhere.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-03-12 21:54:14 -04:00
parent 0e72da6fe8
commit f53f7c8fc4

View 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");