diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-05 00:40:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-05 00:40:39 +0100 |
commit | be888ebbe6e3b07e7fbf68abbdc73a6f23b76522 (patch) | |
tree | 61b3a9e8ed1f9a997308cbca8c52a9e5e2292562 | |
parent | c1e1601e8c6cace85b19a0eebe50076e5d119688 (diff) |
manager: properly read timerfd elapse counter
-rw-r--r-- | manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |