summaryrefslogtreecommitdiff
path: root/udev_device.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-08-29 14:11:37 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-08-29 14:11:37 +0200
commita75689bad504e35e346b84960b2b604532b1d6b5 (patch)
tree6ab67b02456a64a86963881a06d450762b5a7378 /udev_device.c
parent1113044be205f9d78642744ffaa01329a77bee79 (diff)
do not delete the device node with ignore_remove, but handle the event
Diffstat (limited to 'udev_device.c')
-rw-r--r--udev_device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/udev_device.c b/udev_device.c
index 2b7ffe0bf4..62217ff585 100644
--- a/udev_device.c
+++ b/udev_device.c
@@ -266,10 +266,6 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
/* import database entry, and delete it */
if (udev_db_get_device(udev, udev->dev->devpath) == 0) {
udev_db_delete_device(udev);
- if (udev->ignore_remove) {
- info("ignore_remove for '%s'", udev->name);
- goto exit;
- }
/* restore stored persistent data */
list_for_each_entry(name_loop, &udev->env_list, node)
putenv(name_loop->name);
@@ -285,6 +281,10 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
goto exit;
}
+ if (udev->ignore_remove) {
+ info("ignore_remove for '%s'", udev->name);
+ goto exit;
+ }
/* remove the node */
retval = udev_node_remove(udev);