cgroup: do 'catchup' for unit cgroup inotify watch files
authorDan Streetman <ddstreet@canonical.com>
Sun, 11 Jul 2021 20:59:27 +0000 (16:59 -0400)
committerDan Streetman <ddstreet@canonical.com>
Thu, 5 Aug 2021 14:35:20 +0000 (10:35 -0400)
commit869f52f21831b611160c4937bef822ca94c802ba
tree8882db334c0b47b11fece572ef4a0626e8fa5a31
parent32a2ee2bb4fa265577c883403748c909cd6784dd
cgroup: do 'catchup' for unit cgroup inotify watch files

While reexec/reload, we drop the inotify watch on cgroup file(s), so
we need to re-check them in case they changed and we missed the event.

Fixes: #20198
src/core/cgroup.c
src/core/cgroup.h
src/core/unit.c