diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-03-29 11:25:52 +0200 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:55:00 -0700 |
commit | fb39f0566e248c09772ed15a3218ef2381700b6a (patch) | |
tree | a4c9599e64e6e0a635314ac4faf77625752338ef /udev.c | |
parent | 7ff56624f84d1616470ab6cbeab17c1367e775d7 (diff) |
[PATCH] move execute_program to utils + add action to init_device
Diffstat (limited to 'udev.c')
-rw-r--r-- | udev.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |