diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-13 19:43:16 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-13 20:17:06 +0100 |
commit | 66518acd40fbd99a87e553b2d0904c37c8929fb2 (patch) | |
tree | d1ab6f8faaf673aabeabfddd68492d8c2a649e30 | |
parent | 0dfaa0060711a8332c8eb9f1e10f48fe182d3650 (diff) |
journald: allow zero length datagrams again
This undoes a small part of 13790add4bf648fed816361794d8277a75253410
which was erroneously added, given that zero length datagrams are OK,
and hence zero length reads on a SOCK_DGRAM be no means mean EOF.
-rw-r--r-- | src/journal/journald-server.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index e0a078ee33..5999724edc 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -1182,10 +1182,6 @@ int server_process_datagram(sd_event_source *es, int fd, uint32_t revents, void log_error_errno(errno, "recvmsg() failed: %m"); return -errno; } - if (n == 0) { - log_error("Got EOF on socket."); - return -ECONNRESET; - } for (cmsg = CMSG_FIRSTHDR(&msghdr); cmsg; cmsg = CMSG_NXTHDR(&msghdr, cmsg)) { |