diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-05 03:09:20 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-06-05 10:44:17 +0200 |
commit | 99058cd66ad30707d8eda32d6b256e5c05bbf46a (patch) | |
tree | c831ba0754ba7e942237f163daddf2ba907c5339 /src/udev/udevd.c | |
parent | 7e95efb50819a9c1eb85291041ef65fd89f4afb7 (diff) | |
download | systemd-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.c | 5 |
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) |