[systemd-bugs] [Bug 90051] udevd have no measure to avoid exiting before all jobs are done
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 24 07:38:00 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90051
--- Comment #7 from Kay Sievers <kay at vrfy.org> ---
(In reply to Tom Yan from comment #3)
> It doesn't seem to work in the way you said. For example in this script:
> https://projects.archlinux.org/svntogit/packages.git/tree/trunk/initcpio-
> 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
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150424/d330ad7c/attachment.html>
More information about the systemd-bugs
mailing list