summaryrefslogtreecommitdiff
path: root/src/core/scope.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-10 20:35:57 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-10 23:41:03 +0200
commit0c5778a26b14093c79bfc9e8b34e2aeeb1d79b87 (patch)
tree478b54f8c84c5730c9c1e8442401cda45f86d70b /src/core/scope.c
parentb170dd803d334234ad7edd0dc7bb34860832bc07 (diff)
scope: don't require an initialized PIDs set when deserializing
When a scope unit is created due to deserialization rather than client request don't enforce that the PIDs set must be non-empty, since the cgroup is already populated.
Diffstat (limited to 'src/core/scope.c')
-rw-r--r--src/core/scope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/scope.c b/src/core/scope.c
index e0de951b11..20a969d913 100644
--- a/src/core/scope.c
+++ b/src/core/scope.c
@@ -112,7 +112,7 @@ static int scope_verify(Scope *s) {
if (UNIT(s)->load_state != UNIT_LOADED)
return 0;
- if (set_size(s->pids) <= 0) {
+ if (set_size(s->pids) <= 0 && UNIT(s)->manager->n_reloading <= 0) {
log_error_unit(UNIT(s)->id, "Scope %s has no PIDs. Refusing.", UNIT(s)->id);
return -EINVAL;
}