diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-07-14 20:43:01 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-07-14 20:43:01 +0200 |
commit | 4110664d4f25f203b7d76ee56e5e23220b04eb69 (patch) | |
tree | d8f23e676d323fbd7dfbdde87d622cdff63c0b04 /udevd.c | |
parent | 285e2a24f67b1c09d7b4c54587802fc0a9d623eb (diff) |
add option to RUN key to ignore the return value of the program
Diffstat (limited to 'udevd.c')
-rw-r--r-- | udevd.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |