From 9031b0d0a7f357934082eb745e5900618e00da84 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 27 Jun 2014 19:54:45 +0200 Subject: libudev: queue - watch entire directory to allow the re-use of the watch descriptor Signed-off-by: Anthony G. Basile --- src/udev/udevadm-settle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/udev') 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); } -- cgit v1.2.3-54-g00ecf