]> git.ipfire.org Git - thirdparty/systemd.git/commit
scope: only stop watching processes when we go down 29230/head
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Sep 2023 14:24:32 +0000 (16:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Sep 2023 20:28:42 +0000 (22:28 +0200)
commit05d1630e7022a424db894e31044c950e5995235d
tree393001c5f1c709a0f2071dea3c8fea27f60998a1
parentfff7c34ce740f88b995a18a26749214807a8ef38
scope: only stop watching processes when we go down

Let's not stop watching processes on every scope state change. This
corrects behaviour when a scope is being enqueued and hasn't started
yet, but has processes associated to it already. previously, if we'd doa
full PID 1 reload we'd stop watching those pids. With this change we'll
continue watching them in that case, and only stop watching them when
the scope unit really shuts down after first being up.
src/core/scope.c