chiark / gitweb /
builtin: kmod - reload index when rules are reloaded
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 24 Dec 2011 02:51:05 +0000 (03:51 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 24 Dec 2011 02:51:05 +0000 (03:51 +0100)
udev/udev-builtin-kmod.c
udev/udevd.c

index 41de2eb..10afcd5 100644 (file)
@@ -350,7 +350,7 @@ static int builtin_kmod_load(struct udev *udev)
 
 static int builtin_kmod_unload(struct udev *udev)
 {
-       kmod_unref(ctx);
+       ctx = kmod_unref(ctx);
        info(udev, "unload module index\n");
        return 0;
 }
index d1f7cd8..a5ef244 100644 (file)
@@ -1701,6 +1701,9 @@ int main(int argc, char *argv[])
                                rules = rules_new;
                        }
                        reload_config = 0;
+
+                       udev_builtin_unload(udev);
+                       udev_builtin_load(udev);
                }
        }