summaryrefslogtreecommitdiff
path: root/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-05 00:40:39 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-05 00:40:39 +0100
commitbe888ebbe6e3b07e7fbf68abbdc73a6f23b76522 (patch)
tree61b3a9e8ed1f9a997308cbca8c52a9e5e2292562 /manager.c
parentc1e1601e8c6cace85b19a0eebe50076e5d119688 (diff)
manager: properly read timerfd elapse counter
Diffstat (limited to 'manager.c')
-rw-r--r--manager.c2
1 files changed, 1 insertions, 1 deletions
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;