<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#c8">Comment # 8</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:tom.ty89@gmail.com" title="Tom Yan <tom.ty89@gmail.com>"> <span class="fn">Tom Yan</span></a>
</span></b>
<pre>(In reply to Kay Sievers from <a href="show_bug.cgi?id=90051#c7">comment #7</a>)
<span class="quote">> (In reply to Tom Yan from <a href="show_bug.cgi?id=90051#c3">comment #3</a>)
> > 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.
>
> 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</span >
I am aware of that. This problem can't be easily reproduced in a script because
the time needed to make a difference could varies depending on the job and
could be really short.
Not sure how to give you very nice proof. But maybe I can upload some pics to
let you see the difference.</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>