]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-unit-util.c
core: enforce that scope units can be started only once
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Apr 2018 18:35:10 +0000 (20:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 Apr 2018 19:52:45 +0000 (21:52 +0200)
commitd4fd1cf20888e6146e40af9283f3be03a460f276
treec7e370b6a7b236ad784997ecfd4e596324b93e1e
parentd1a1f0aaf0d2f08c60d1e0d32e646439d99f58dc
core: enforce that scope units can be started only once

Scope units are populated from PIDs specified by the bus client. We do
that when a scope is started. We really shouldn't allow scopes to be
started multiple times, as the PIDs then might be heavily out of date.
Moreover, clients should have the guarantee that any scope they allocate
has a clear runtime cycle which is not repetitive.
src/core/job.c
src/core/job.h
src/core/scope.c
src/core/unit.c
src/core/unit.h
src/shared/bus-unit-util.c