From 66518acd40fbd99a87e553b2d0904c37c8929fb2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 13 Jan 2015 19:43:16 +0100 Subject: [PATCH] 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. --- src/journal/journald-server.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index e0a078e..5999724 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)) { -- 2.7.4