libudev: queue - watch entire directory to allow the re-use of the watch descriptor

This commit is contained in:
Kay Sievers
2014-06-27 19:56:31 +02:00
parent dc6d4ea9a6
commit 8a7a0c19ed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ _public_ int udev_queue_get_fd(struct udev_queue *udev_queue) {
if (fd < 0)
return -errno;
r = inotify_add_watch(fd, "/run/udev/queue" , IN_DELETE);
r = inotify_add_watch(fd, "/run/udev" , IN_DELETE);
if (r < 0) {
r = -errno;
close(fd);