]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/scope.c
core: serialize u->pids until the processes have been moved to the scope cgroup
authorFranck Bui <fbui@suse.com>
Mon, 16 Nov 2020 14:12:21 +0000 (15:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Nov 2020 14:57:59 +0000 (15:57 +0100)
commit428a9f6f1d0396b9eacde2b38d667cbe3f15eb55
tree99dfd107ec8f80f3dec9d5ef4019395f3d85640e
parenteebd1c3ad268089be5b392c043f2135c297db07a
core: serialize u->pids until the processes have been moved to the scope cgroup

Otherwise if a daemon-reload happens somewhere between the enqueue of the job
start for the scope unit and scope_start() then u->pids might be lost and none
of the processes specified by "PIDs=" will be moved into the scope cgroup.
src/core/scope.c