1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

udevadm: ensure 'udevadm info -w' show updated result

This seems not necessary, but just for safety.
This commit is contained in:
Yu Watanabe 2019-06-28 03:18:22 +09:00 committed by Lennart Poettering
parent 2e8e1a1ab6
commit 7a555216df

View File

@ -467,9 +467,14 @@ int info_main(int argc, char *argv[], void *userdata) {
return log_error_errno(r, "Unknown device \"%s\": %m", *p);
if (arg_wait_for_initialization_timeout > 0) {
r = device_wait_for_initialization(device, NULL, arg_wait_for_initialization_timeout, NULL);
sd_device *d;
r = device_wait_for_initialization(device, NULL, arg_wait_for_initialization_timeout, &d);
if (r < 0)
return r;
sd_device_unref(device);
device = d;
}
if (action == ACTION_QUERY)