]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: create /run/udev/queue file earlier 40518/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 30 Jan 2026 11:32:15 +0000 (20:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 3 Feb 2026 12:25:01 +0000 (21:25 +0900)
commitdc709eff0bc956df7f1c311006b319eae8bc8f1f
tree60b6081febc4da03ad7726c03be9306743c3827a
parentb7363d33302fa86fe46e03b500e729fea3277ed7
udev: create /run/udev/queue file earlier

When udevd received a uevent or inotify event, we will queue or trigger
synthesized 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.
src/udev/udev-manager.c
src/udev/udev-manager.h
src/udev/udev-watch.c