From 40dde66fa021bf143bcd8f5e2bf5fadcc0339eae Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 Nov 2010 21:09:18 +0100 Subject: [PATCH] manager: ignore invalid epoll events --- TODO | 2 +- src/manager.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 57306863..29b70115 100644 --- a/TODO +++ b/TODO @@ -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 a39427b1..204a88e7 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: -- 2.39.5