summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-04-02 17:45:35 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 23:55:00 -0700
commit821d0ec803a72841f173739f5b713fe847edab75 (patch)
tree4866ffc8b8c367cd6e62fd0616fffde01757e3e7 /udevd.c
parente03a196a0d0680868ea230ab8f8d100ee90d0fa4 (diff)
[PATCH] add RUN key to be able to run rule based notification
SUBSYSTEM=="block", RUN="/sbin/program" will execute the program only for block device events. ACTION="remove", SUBSYSTEM=="block", RUN"/sbin/program" will execute the program, if a block device is removed.
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udevd.c b/udevd.c
index 6c4d8b8693..91033b0688 100644
--- a/udevd.c
+++ b/udevd.c
@@ -145,7 +145,7 @@ static void msg_queue_insert(struct hotplug_msg *msg)
}
/* forks event and removes event from run queue when finished */
-static void udev_run(struct hotplug_msg *msg)
+static void execute_udev(struct hotplug_msg *msg)
{
char *const argv[] = { "udev", msg->subsystem, NULL };
pid_t pid;
@@ -349,7 +349,7 @@ static void exec_queue_manager(void)
if (!msg) {
/* move event to run list */
list_move_tail(&loop_msg->node, &running_list);
- udev_run(loop_msg);
+ execute_udev(loop_msg);
running++;
dbg("moved seq %llu to running list", loop_msg->seqnum);
} else {