summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-10 21:04:39 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-10 21:04:39 +0100
commit17afc8f27b7850ca479f0c3720680b90881d8e6e (patch)
tree17fb148ff8ff0a06d5184a017a6afe467cf6d20b /src
parent9ff1a6f1d61d4569920d5b75c88cf1c2ad9adaae (diff)
journald: be less picky when receiving epoll events
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.
Diffstat (limited to 'src')
-rw-r--r--src/journal/journald-server.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 36fe739073..a6e5e4a20f 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -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