udev: skipping empty udev rules file while collecting the stats
authorLidong Zhong <lidong.zhong@suse.com>
Thu, 7 Nov 2024 06:41:11 +0000 (14:41 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 8 Nov 2024 23:20:09 +0000 (23:20 +0000)
commit2ae79a31b7c7947e2c16e18eb85ac5607ebc40b6
tree63f2fe88e7e04988d51ede1b728f35a88bbcf745
parent56933f2073b37ffb939a69f9f441f26c624a81bd
udev: skipping empty udev rules file while collecting the stats

To keep align with the logic used in udev_rules_parse_file(), we also
should skip the empty udev rules file while collecting the stats during
manager reload. Otherwise all udev rules files will be parsed again whenever
reloading udev manager with an empty udev rules file. It's time consuming
and the following uevents will fail with timeout.
src/shared/conf-parser.c