[systemd-bugs] [Bug 90051] New: udevd have no measure to avoid exiting before all jobs are done

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 16 01:36:55 PDT 2015


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

            Bug ID: 90051
           Summary: udevd have no measure to avoid exiting before all jobs
                    are done
           Product: systemd
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: tom.ty89 at gmail.com
        QA Contact: systemd-bugs at lists.freedesktop.org

Created attachment 115114
  --> https://bugs.freedesktop.org/attachment.cgi?id=115114&action=edit
Shell script to reproduce the problem

For example I want to get the following udev rule applied:
ATTR{devpath}=="13", ATTR{power/wakeup}="enabled"

If you run udevd and udevadm trigger in a script, like this one:

https://projects.archlinux.org/svntogit/packages.git/tree/trunk/initcpio-hook-udev?h=packages/systemd

you could notice that udevd is not guaranteed to exit after it finishes its job
despite all possible timeout parameters in different commands
(udevd/control/settle)

In the case of services, if you stop the udevd service soon after the trigger
service, it will wait for its timeout (30s by default) by doing nothing,
leaving the job undone.

Attached is a script to reproduce the problem. By toggling `sleep 1` you shall
see the difference.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150416/c4cd5b44/attachment.html>


More information about the systemd-bugs mailing list