summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-15 21:09:18 +0100
committerLennart Poettering <lennart@poettering.net>2010-11-15 22:13:26 +0100
commit40dde66fa021bf143bcd8f5e2bf5fadcc0339eae (patch)
treecb851057faad0e8bdcacf36d924cbda8c2cbc7b0 /src
parentf5319832c4cbec4c9569adf1a4512cc620ddc58a (diff)
manager: ignore invalid epoll events
Diffstat (limited to 'src')
-rw-r--r--src/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c
index a39427b1f6..204a88e791 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -2192,6 +2192,9 @@ static int process_event(Manager *m, struct epoll_event *ev) {
assert(w = ev->data.ptr);
+ if (w->type == WATCH_INVALID)
+ return 0;
+
switch (w->type) {
case WATCH_SIGNAL: