1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

udevadm-settle: emit deprecated warning earlier

This commit is contained in:
Yu Watanabe 2022-08-28 00:33:15 +09:00
parent b72e5d9d8e
commit 6ecccf60d2

View File

@ -172,6 +172,8 @@ int settle_main(int argc, char *argv[], void *userdata) {
return 0;
}
(void) emit_deprecation_warning();
deadline = now(CLOCK_MONOTONIC) + arg_timeout;
/* guarantee that the udev daemon isn't pre-processing */
@ -197,8 +199,6 @@ int settle_main(int argc, char *argv[], void *userdata) {
return 0;
}
(void) emit_deprecation_warning();
for (;;) {
if (arg_exists && access(arg_exists, F_OK) >= 0)
return 0;