diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-12-24 03:51:05 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-12-24 03:51:05 +0100 |
commit | f775ccfcf2fadfc1224405b676a8b64d2a19f3ad (patch) | |
tree | 36f2221ca587a7d29df88f8bf4e0afb54c738dcf /udev | |
parent | b2ddca8a21e83c52dcbcf538bb61cd470b6fd999 (diff) |
builtin: kmod - reload index when rules are reloaded
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udev-builtin-kmod.c | 2 | ||||
-rw-r--r-- | udev/udevd.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/udev/udev-builtin-kmod.c b/udev/udev-builtin-kmod.c index 41de2ebc37..10afcd5db0 100644 --- a/udev/udev-builtin-kmod.c +++ b/udev/udev-builtin-kmod.c @@ -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; } diff --git a/udev/udevd.c b/udev/udevd.c index d1f7cd8909..a5ef24417d 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -1701,6 +1701,9 @@ int main(int argc, char *argv[]) rules = rules_new; } reload_config = 0; + + udev_builtin_unload(udev); + udev_builtin_load(udev); } } |