manager: ignore invalid epoll events
This commit is contained in:
parent
f5319832c4
commit
40dde66fa0
2
TODO
2
TODO
|
@ -79,7 +79,7 @@
|
||||||
|
|
||||||
* declare /etc/os-release cross-distro standard
|
* declare /etc/os-release cross-distro standard
|
||||||
|
|
||||||
Pre v12:
|
* rename s/session/user/g
|
||||||
|
|
||||||
* fix hotplug transactions
|
* fix hotplug transactions
|
||||||
|
|
||||||
|
|
|
@ -2192,6 +2192,9 @@ static int process_event(Manager *m, struct epoll_event *ev) {
|
||||||
|
|
||||||
assert(w = ev->data.ptr);
|
assert(w = ev->data.ptr);
|
||||||
|
|
||||||
|
if (w->type == WATCH_INVALID)
|
||||||
|
return 0;
|
||||||
|
|
||||||
switch (w->type) {
|
switch (w->type) {
|
||||||
|
|
||||||
case WATCH_SIGNAL:
|
case WATCH_SIGNAL:
|
||||||
|
|
Loading…
Reference in New Issue