]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/cgroup.c
cgroup: after determining that a cgroup is empty, asynchronously dispatch this
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Sep 2017 20:43:08 +0000 (22:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Sep 2017 16:26:18 +0000 (18:26 +0200)
commit09e2465407e6179d3833a68efd5ddb71bb3c3b23
treed7f0d8c4cfea65217bd3a8a951004aecd0cbc831
parent91a6073ef779ee3f015c05eec278f6e076b4c963
cgroup: after determining that a cgroup is empty, asynchronously dispatch this

This makes sure that if we learn via inotify or another event source
that a cgroup is empty, and we checked that this is indeed the case (as
we might get spurious notifications through inotify, as the inotify
logic through the "cgroups.event" is pretty unspecific and might be
trigger for a variety of reasons), then we'll enqueue a defer event for
it, at a priority lower than SIGCHLD handling, so that we know for sure
that if there's waitid() data for a process we used it before
considering the cgroup empty notification.

Fixes: #6608
src/core/cgroup.c
src/core/cgroup.h
src/core/manager.c
src/core/manager.h
src/core/service.c
src/core/unit.c
src/core/unit.h