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:
parent
2e8e1a1ab6
commit
7a555216df
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user