summaryrefslogtreecommitdiff
path: root/udev/udev-watch.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-02-11 21:56:35 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-02-11 21:56:35 +0100
commit4aca304e48d69766d47439f0d3dcaa8797b46c78 (patch)
treea8099f1f873f06d1c544b50b3e6a196a0e43b20b /udev/udev-watch.c
parent88ec7bb7543ff9fd15fdce03a1889e7e388a0051 (diff)
use global "reload_config" flag
Diffstat (limited to 'udev/udev-watch.c')
-rw-r--r--udev/udev-watch.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/udev/udev-watch.c b/udev/udev-watch.c
index 24df481cf8..92ab907856 100644
--- a/udev/udev-watch.c
+++ b/udev/udev-watch.c
@@ -102,21 +102,16 @@ void udev_watch_restore(struct udev *udev)
buf[len] = '\0';
dbg(udev, "old watch to '%s' found\n", buf);
-
dev = udev_device_new_from_syspath(udev, buf);
if (dev == NULL) {
unlink(path);
continue;
}
- udev_device_read_db(dev);
- udev_device_set_info_loaded(dev);
-
info(udev, "restoring old watch on '%s'\n", udev_device_get_devnode(dev));
udev_watch_begin(udev, dev);
udev_device_unref(dev);
-
unlink(path);
}
@@ -149,7 +144,7 @@ void udev_watch_begin(struct udev *udev, struct udev_device *dev)
if (inotify_fd < 0)
return;
- wd = inotify_add_watch (inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
+ wd = inotify_add_watch(inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
if (wd < 0) {
err(udev, "inotify_add_watch(%d, %s, %o) failed: %m\n",
inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);