chiark / gitweb /
core: zero size notify messages are OK
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Jan 2015 00:11:46 +0000 (01:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Jan 2015 00:17:55 +0000 (01:17 +0100)
src/core/manager.c

index 947d431..4f77139 100644 (file)
@@ -1521,8 +1521,6 @@ static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t
 
                         return -errno;
                 }
-                if (n == 0)
-                        return -ECONNRESET;
 
                 for (cmsg = CMSG_FIRSTHDR(&msghdr); cmsg; cmsg = CMSG_NXTHDR(&msghdr, cmsg)) {
                         if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) {