summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-29 11:25:52 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 23:55:00 -0700
commitfb39f0566e248c09772ed15a3218ef2381700b6a (patch)
treea4c9599e64e6e0a635314ac4faf77625752338ef /udev.c
parent7ff56624f84d1616470ab6cbeab17c1367e775d7 (diff)
[PATCH] move execute_program to utils + add action to init_device
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/udev.c b/udev.c
index 6d1d679d9a..23375b7a3e 100644
--- a/udev.c
+++ b/udev.c
@@ -141,7 +141,7 @@ int main(int argc, char *argv[], char *envp[])
if (!subsystem && argc == 2)
subsystem = argv[1];
- udev_init_device(&udev, devpath, subsystem);
+ udev_init_device(&udev, devpath, subsystem, action);
if (!action || !subsystem || !devpath) {
err("action, subsystem or devpath missing");
@@ -230,10 +230,11 @@ int main(int argc, char *argv[], char *envp[])
}
hotplug:
- udev_cleanup_device(&udev);
if (udev_hotplug_d && managed_event)
udev_multiplex_directory(&udev, HOTPLUGD_DIR, HOTPLUG_SUFFIX);
+ udev_cleanup_device(&udev);
+
logging_close();
return retval;
}