udevadm-settle: emit deprecated warning earlier

This commit is contained in:
Yu Watanabe
2022-08-29 13:40:54 +09:00
parent b72e5d9d8e
commit 6ecccf60d2
+2 -2
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;