chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 22 Nov 2017 07:25:15 +0000 (08:25 +0100)
commit2e703556b82bfe0106ec5efa695c4610572ba79d
treec7d5d7ebb8bb4045b4b3356e90f6ddb37d307e19
parentcbf948e256f7baf4889a42c7ea2e4696b6f03453
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