<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - udevd have no measure to avoid exiting before all jobs are done"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90051#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - udevd have no measure to avoid exiting before all jobs are done"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90051">bug 90051</a>
              from <span class="vcard"><a class="email" href="mailto:kay@vrfy.org" title="Kay Sievers <kay@vrfy.org>"> <span class="fn">Kay Sievers</span></a>
</span></b>
        <pre>(In reply to Tom Yan from <a href="show_bug.cgi?id=90051#c3">comment #3</a>)
<span class="quote">> It doesn't seem to work in the way you said. For example in this script:
> <a href="https://projects.archlinux.org/svntogit/packages.git/tree/trunk/initcpio">https://projects.archlinux.org/svntogit/packages.git/tree/trunk/initcpio</a>-
> hook-udev?h=packages/systemd
> I assume that `udevadm settle` should make sure that events triggered by the
> two commands before it should be finished? But from what I am experiencing
> it does not.</span >

A quick test seems to work fine here.

# cat /etc/udev/rules.d/10-local.rules
KERNEL=="null", RUN+="/usr/bin/sleep 3"

# echo $(date +%s) trigger; udevadm trigger; \
  echo $(date +%s) settling; udevadm settle; \
  echo $(date +%s) exiting; udevadm control --exit; \
  echo $(date +%s) done
1429886202 trigger
1429886202 settling
1429886205 exiting
1429886205 done</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>