]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: create /run/udev/queue file earlier (#40518)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 3 Feb 2026 14:36:28 +0000 (23:36 +0900)
committerGitHub <noreply@github.com>
Tue, 3 Feb 2026 14:36:28 +0000 (23:36 +0900)
When udevd received a uevent or inotify event, then we will queue
events. To minimize the race between processing these events by udevd
and user invocation of 'udevadm settle', let's create /run/udev/queue
file earlier.
On some errors, no event may be queued, but in that case, the file will
be removed by the post event source if nothing queued. See on_post().

Hopefully mitigate the issue #40499.


Trivial merge