From 4b718be86db37a37c83793ca410e8d9968e615f2 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Mon, 16 May 2011 19:13:42 +0200 Subject: libudev: queue - always rebuild queue file when nothing is queued anymore --- udev/udevadm-settle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udev/udevadm-settle.c') diff --git a/udev/udevadm-settle.c b/udev/udevadm-settle.c index 9492abd401..b717ae60de 100644 --- a/udev/udevadm-settle.c +++ b/udev/udevadm-settle.c @@ -153,7 +153,7 @@ int udevadm_settle(struct udev *udev, int argc, char *argv[]) if (pfd[0].fd < 0) { err(udev, "inotify_init failed: %m\n"); } else { - if (inotify_add_watch(pfd[0].fd, udev_get_run_path(udev), IN_CLOSE_WRITE) < 0) { + if (inotify_add_watch(pfd[0].fd, udev_get_run_path(udev), IN_MOVED_TO) < 0) { err(udev, "watching '%s' failed\n", udev_get_run_path(udev)); close(pfd[0].fd); pfd[0].fd = -1; -- cgit v1.2.3-54-g00ecf