diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-18 23:09:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-18 23:09:09 +0200 |
commit | 4e4343146ade25b1ccfc927e2807d854be863ec4 (patch) | |
tree | e33d93110852b91bdf43732a538283c651346894 /src/mount.c | |
parent | 5a33f657b52f30a77fac41feb8854b563d77382e (diff) |
swap: listen for POLLPRI events on /proc/swaps if available
Diffstat (limited to 'src/mount.c')
-rw-r--r-- | src/mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mount.c b/src/mount.c index c7df923f85..284fcb94b2 100644 --- a/src/mount.c +++ b/src/mount.c @@ -1526,7 +1526,7 @@ static int mount_enumerate(Manager *m) { m->mount_watch.fd = fileno(m->proc_self_mountinfo); zero(ev); - ev.events = EPOLLERR; + ev.events = EPOLLPRI; ev.data.ptr = &m->mount_watch; if (epoll_ctl(m->epoll_fd, EPOLL_CTL_ADD, m->mount_watch.fd, &ev) < 0) @@ -1551,7 +1551,7 @@ void mount_fd_event(Manager *m, int events) { int r; assert(m); - assert(events == EPOLLERR); + assert(events & EPOLLPRI); /* The manager calls this for every fd event happening on the * /proc/self/mountinfo file, which informs us about mounting |