]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journald: be less picky when receiving epoll events
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2015 20:04:39 +0000 (21:04 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2015 20:04:39 +0000 (21:04 +0100)
The event might be flagged with stuff we don't expect, hence don't
be needlessly picky, just rely on the kernel passing us sensible events.

src/journal/journald-server.c

index 36fe739073eedeba8e54f83f460bb7bd1d5ea07a..a6e5e4a20fb95fa233f6e0becac7b6b72e5613b2 100644 (file)
@@ -1484,11 +1484,6 @@ static int dispatch_notify_event(sd_event_source *es, int fd, uint32_t revents,
         assert(s->notify_event_source == es);
         assert(s->notify_fd == fd);
 
-        if (revents != EPOLLOUT) {
-                log_error("Invalid events on notify file descriptor.");
-                return -EINVAL;
-        }
-
         /* The $NOTIFY_SOCKET is writable again, now send exactly one
          * message on it. Either it's the wtachdog event, the initial
          * READY=1 event or an stdout stream event. If there's nothing