summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-07-14 20:43:01 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-07-14 20:43:01 +0200
commit4110664d4f25f203b7d76ee56e5e23220b04eb69 (patch)
treed8f23e676d323fbd7dfbdde87d622cdff63c0b04 /udevd.c
parent285e2a24f67b1c09d7b4c54587802fc0a9d623eb (diff)
add option to RUN key to ignore the return value of the program
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/udevd.c b/udevd.c
index 0999b5fa75..afefb91483 100644
--- a/udevd.c
+++ b/udevd.c
@@ -148,8 +148,9 @@ static int udev_event_process(struct udevd_uevent_msg *msg)
strlcpy(program, name_loop->name, sizeof(program));
udev_rules_apply_format(udev, program, sizeof(program));
if (run_program(program, udev->dev->subsystem, NULL, 0, NULL,
- (udev_log_priority >= LOG_INFO)))
- retval = -1;
+ (udev_log_priority >= LOG_INFO)) != 0)
+ if (!name_loop->ignore_error)
+ retval = -1;
}
}
}
@@ -258,7 +259,7 @@ static void udev_event_run(struct udevd_uevent_msg *msg)
setpriority(PRIO_PROCESS, 0, UDEV_PRIORITY);
retval = udev_event_process(msg);
- info("seq %llu finished", msg->seqnum);
+ info("seq %llu finished with %i", msg->seqnum, retval);
logging_close();
if (retval)