[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 08:49:16 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90051

--- Comment #8 from Tom Yan <tom.ty89 at gmail.com> ---
(In reply to Kay Sievers from comment #7)
> (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

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.

-- 
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/ae040ba3/attachment.html>


More information about the systemd-bugs mailing list