chiark / gitweb /
core: when forcibly killing/aborting left-over unit processes log about it
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Jul 2016 09:16:05 +0000 (11:16 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:13:01 +0000 (10:13 +0200)
commita46d97abe772733d301fc1e6fb7bdfc4f0eba1ab
tree50af47bda7d8464a4df6485a9c6ee55651ffee0d
parent10ca952061a7fc8581b194678700e15a8e1a53e4
core: when forcibly killing/aborting left-over unit processes log about it

Let's lot at LOG_NOTICE about any processes that we are going to
SIGKILL/SIGABRT because clean termination of them didn't work.

This turns the various boolean flag parameters to cg_kill(), cg_migrate() and
related calls into a single binary flags parameter, simply because the function
now gained even more parameters and the parameter listed shouldn't get too
long.

Logging for killing processes is done either when the kill signal is SIGABRT or
SIGKILL, or on explicit request if KILL_TERMINATE_AND_LOG instead of LOG_TERMINATE
is passed. This isn't used yet in this patch, but is made use of in a later
patch.
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/core/cgroup.c