chiark / gitweb /
libudev: queue - watch entire directory to allow the re-use of the watch descriptor
[elogind.git] / src / udev / udevadm-settle.c
index 79e8b5990b65dfc65a8a71675ecd66b368766f47..fa5b0c2d2ed8119b85e3719a923de6f8c407e01b 100644 (file)
@@ -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);
         }