chiark / gitweb /
disable the cgroups release agent when shutting down
authorKay Sievers <kay@vrfy.org>
Thu, 4 Jul 2013 18:31:18 +0000 (20:31 +0200)
committerKay Sievers <kay@vrfy.org>
Thu, 4 Jul 2013 18:31:18 +0000 (20:31 +0200)
commitad929bcc27e2c6c1aa731053e45882686e9babab
tree6bee9093b59205b665751df7181347ab887841a0
parent0da26ab51bf61e7a14b5e899326cf9cfa513ca52
disable the cgroups release agent when shutting down

During shutdown, when we try to clean up all remaining processes, the
kernel will fork new agents every time a cgroup runs empty. These
new processes cause delays in the final SIGTERM, SIGKILL logic.

Apart from that, this should also avoid that the kernel-forked binaries
cause unpredictably timed access to the filesystem which we might need to
unmount.
src/core/main.c
src/shared/cgroup-util.c
src/shared/cgroup-util.h