summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-06-27 19:54:45 +0200
committerKay Sievers <kay@vrfy.org>2014-06-27 19:56:31 +0200
commit8a7a0c19edd2d971d4aa9d635f7978af841e8278 (patch)
tree407d4f84ad29c70b0baa99fdd50b5a5b8eff9694 /src/udev
parentdc6d4ea9a668e2efdf12eab9ff41209299bbfd20 (diff)
libudev: queue - watch entire directory to allow the re-use of the watch descriptor
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 79e8b5990b..fa5b0c2d2e 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);
}