]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: reload rules and builtins only when mtime of a config changed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Jul 2022 02:52:37 +0000 (11:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Jul 2022 06:05:22 +0000 (15:05 +0900)
commite9d1fae3bbf4e4ee6a5416f8ed0e498f034f4d98
treec4f6a22e2b256585dc1cf6fc9f643a61c3a999b7
parentacfbd71ccc3c316c335accfb872937cbf9d3dde3
udev: reload rules and builtins only when mtime of a config changed

This makes udevd reload rules only when the timestamp is updated,
even on SIGHUP or `udevadm control --reload`.
So, we can call `udevadm control --reload` without huge performance
penalty when no rules, .link files, and so on are changed.
src/udev/udev-rules.h
src/udev/udevd.c