From be888ebbe6e3b07e7fbf68abbdc73a6f23b76522 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 5 Feb 2010 00:40:39 +0100 Subject: manager: properly read timerfd elapse counter --- manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager.c b/manager.c index 57b64ad855..7a31c0c9d2 100644 --- a/manager.c +++ b/manager.c @@ -1212,7 +1212,7 @@ static int process_event(Manager *m, struct epoll_event *ev, bool *quit) { ssize_t k; /* Some timer event, to be dispatched to the units */ - if ((k = read(ev->data.fd, &v, sizeof(v))) != sizeof(v)) { + if ((k = read(w->fd, &v, sizeof(v))) != sizeof(v)) { if (k < 0 && (errno == EINTR || errno == EAGAIN)) break; -- cgit v1.2.3-54-g00ecf