summaryrefslogtreecommitdiffstats
path: root/libmount/src/monitor.c
diff options
context:
space:
mode:
authorKarel Zak2015-09-11 11:37:49 +0200
committerKarel Zak2015-09-11 11:37:49 +0200
commit1d15c4b273b5690f575a872ed2f8ef137976f937 (patch)
tree3cb57474e55d64c224b3bacb0b1687b5d7d3b084 /libmount/src/monitor.c
parentlibmount: (monitor) don't check for regular mtab (diff)
downloadkernel-qcow2-util-linux-1d15c4b273b5690f575a872ed2f8ef137976f937.tar.gz
kernel-qcow2-util-linux-1d15c4b273b5690f575a872ed2f8ef137976f937.tar.xz
kernel-qcow2-util-linux-1d15c4b273b5690f575a872ed2f8ef137976f937.zip
libmount: (monitor) remove unnecessary epoll EPOLLPRI
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/monitor.c')
-rw-r--r--libmount/src/monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmount/src/monitor.c b/libmount/src/monitor.c
index ca9e02c53..9bc7ea32a 100644
--- a/libmount/src/monitor.c
+++ b/libmount/src/monitor.c
@@ -412,7 +412,7 @@ int mnt_monitor_enable_userspace(struct libmnt_monitor *mn, int enable, const ch
me->type = MNT_MONITOR_TYPE_USERSPACE;
me->opers = &userspace_opers;
- me->events = EPOLLPRI | EPOLLIN;
+ me->events = EPOLLIN;
me->path = strdup(filename);
if (!me->path)
goto err;
@@ -524,7 +524,7 @@ int mnt_monitor_enable_kernel(struct libmnt_monitor *mn, int enable)
* that we have to drain initial event generated by EPOLLIN after
* epoll_ctl(ADD). See monitor_modify_epoll().
*/
- me->events = EPOLLPRI | EPOLLIN | EPOLLET;
+ me->events = EPOLLIN | EPOLLET;
me->type = MNT_MONITOR_TYPE_KERNEL;
me->opers = &kernel_opers;
@@ -884,7 +884,7 @@ int __test_epoll(struct libmnt_test *ts, int argc, char *argv[], int cleanup)
goto done;
}
- ev.events = EPOLLPRI | EPOLLIN;
+ ev.events = EPOLLIN;
ev.data.fd = fd;
rc = epoll_ctl(efd, EPOLL_CTL_ADD, fd, &ev);