summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-06-05 03:09:20 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-06-05 10:44:17 +0200
commit99058cd66ad30707d8eda32d6b256e5c05bbf46a (patch)
treec831ba0754ba7e942237f163daddf2ba907c5339 /src/udev/udevd.c
parent7e95efb50819a9c1eb85291041ef65fd89f4afb7 (diff)
downloadsystemd-99058cd66ad30707d8eda32d6b256e5c05bbf46a.tar.gz
systemd-99058cd66ad30707d8eda32d6b256e5c05bbf46a.tar.bz2
systemd-99058cd66ad30707d8eda32d6b256e5c05bbf46a.zip
udev: propagate errors in udev_event_execute_rules()
And do not set initialized flag to the device.
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 03fca8f100..8e7402fd87 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -414,7 +414,10 @@ static int worker_process_device(Manager *manager, sd_device *dev) {
return r;
/* apply rules, create node, symlinks */
- udev_event_execute_rules(udev_event, arg_event_timeout_usec, manager->properties, manager->rules);
+ r = udev_event_execute_rules(udev_event, arg_event_timeout_usec, manager->properties, manager->rules);
+ if (r < 0)
+ return r;
+
udev_event_execute_run(udev_event, arg_event_timeout_usec);
if (!manager->rtnl)