diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-15 21:09:18 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-15 22:13:26 +0100 |
commit | 40dde66fa021bf143bcd8f5e2bf5fadcc0339eae (patch) | |
tree | cb851057faad0e8bdcacf36d924cbda8c2cbc7b0 | |
parent | f5319832c4cbec4c9569adf1a4512cc620ddc58a (diff) |
manager: ignore invalid epoll events
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/manager.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -79,7 +79,7 @@ * declare /etc/os-release cross-distro standard -Pre v12: +* rename s/session/user/g * fix hotplug transactions 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: |