]> git.ipfire.org Git - thirdparty/systemd.git/commit
scope: on unified, make sure to unwatch all PIDs once they've been moved to the cgrou...
authorFranck Bui <fbui@suse.com>
Mon, 30 Nov 2020 14:26:15 +0000 (15:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 Dec 2020 08:33:14 +0000 (09:33 +0100)
commite9eec8b5d2c106c5dd51382a155e6045c7c17c1a
tree1b1bac195e82cbe30e8caffcb85021b57e1a6a28
parentcb9d621ebbfa30bbd620c17e143daeb0d78c12f0
scope: on unified, make sure to unwatch all PIDs once they've been moved to the cgroup scope

Commit 428a9f6f1d0396b9eacde2b38d667cbe3f15eb55 freed u->pids which is
problematic since the references to this unit in m->watch_pids were no more
removed when the unit was freed.

This patch makes sure to clean all this refs up before freeing u->pids by
calling unit_unwatch_all_pids().
src/core/scope.c