udev: remove /run/udev/queue in on_post()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Mar 2022 12:22:57 +0000 (21:22 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 Mar 2022 15:19:36 +0000 (16:19 +0100)
commit4029328014be9350ca9fc0774ad936c8b5e50ff2
tree3bad3cc36cb49cb4d315f32033c48adf4b81e8b2
parent9612da361a825d70a9fd392f3ee5a53bf8896887
udev: remove /run/udev/queue in on_post()

When the last queued event is processed, information about subsequent
events may be already queued in the netlink socket of sd-device-monitor.
In that case, previously we once removed /run/udev/queue and touch the
file soon later, and `udevadm settle` mistakenly considered all events
are processed.

To mitigate such situation, this makes /run/udev/queue removed in on_post().
src/udev/udevd.c