summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-01-25 02:21:07 +0100
committerKay Sievers <kay.sievers@suse.de>2006-01-25 02:21:07 +0100
commit37854ffc9ae60da66d5525225c93eb1754a780bb (patch)
treeb410a3da7e27273aa13ec08c8bee95545286c367 /udevd.c
parentad27f5b3962d4cb1e4fcc25d3d0c7d0c81abc82a (diff)
let "ignore_device" always return the event successfully
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udevd.c b/udevd.c
index 4ed2f94bfc..c94fdc74d8 100644
--- a/udevd.c
+++ b/udevd.c
@@ -117,9 +117,10 @@ static int udev_event_process(struct uevent_msg *msg)
retval = udev_device_event(&rules, udev);
/* run programs collected by RUN-key*/
- if (retval == 0) {
+ if (retval == 0 && !udev->ignore_device && udev_run) {
struct name_entry *name_loop;
+ dbg("executing run list");
list_for_each_entry(name_loop, &udev->run_list, node) {
if (strncmp(name_loop->name, "socket:", strlen("socket:")) == 0)
pass_env_to_socket(&name_loop->name[strlen("socket:")], msg->devpath, msg->action);