summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-10 18:01:13 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-07-30 14:01:46 +0200
commit91e0ee5f16321656ed6f827742ecbeb2b36027f2 (patch)
tree41f3b5b389f8e6353b5e8bfb34272add25b10385 /src/systemctl
parente67cd21d7d174cdafd12beca4cfb6e19e61f6fb5 (diff)
downloadsystemd-91e0ee5f16321656ed6f827742ecbeb2b36027f2.tar.gz
pid1: drop unit caches only based on mtime
v2: - do not watch mtime of transient and generated dirs We'd reload the map after every transient unit we created, which we don't need to do, since we create those units ourselves and know their fragment path.
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 31d364cefe..1140deb0d1 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -2593,7 +2593,7 @@ static int unit_find_paths(
_cleanup_set_free_free_ Set *names = NULL;
if (!cached_name_map) {
- r = unit_file_build_name_map(lp, &cached_id_map, &cached_name_map, NULL);
+ r = unit_file_build_name_map(lp, NULL, &cached_id_map, &cached_name_map, NULL);
if (r < 0)
return r;
}