summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-06-27 19:54:45 +0200
committerAnthony G. Basile <blueness@gentoo.org>2014-07-01 07:22:32 -0400
commit9031b0d0a7f357934082eb745e5900618e00da84 (patch)
treeac4f326c6a0ff40fc026fda569977dd5e3073dad /src/udev
parenta31296d41eca0b996f31f9abe60fce33b036689e (diff)
libudev: queue - watch entire directory to allow the re-use of the watch descriptor
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udevadm-settle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-settle.c b/src/udev/udevadm-settle.c
index 93b519a612..9cb98c3260 100644
--- a/src/udev/udevadm-settle.c
+++ b/src/udev/udevadm-settle.c
@@ -135,7 +135,7 @@ static int adm_settle(struct udev *udev, int argc, char *argv[])
}
/* wake up when queue is empty */
- if (poll(pfd, 1, 100) > 0 && pfd[0].revents & POLLIN)
+ if (poll(pfd, 1, MSEC_PER_SEC) > 0 && pfd[0].revents & POLLIN)
udev_queue_flush(queue);
}