]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevadm-settle: emit deprecated warning earlier
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 27 Aug 2022 15:33:15 +0000 (00:33 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Aug 2022 04:40:54 +0000 (13:40 +0900)
src/udev/udevadm-settle.c

index df9fefc8d0074360558972ceb5b156d3238da5d4..2404442fd76c687707d3d58964002f4928f405d1 100644 (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;