chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b170dd8
)
scope: don't require an initialized PIDs set when deserializing
author
Lennart Poettering
<lennart@poettering.net>
Wed, 10 Jul 2013 18:35:57 +0000
(20:35 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 10 Jul 2013 21:41:03 +0000
(23:41 +0200)
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.
src/core/scope.c
patch
|
blob
|
history
diff --git
a/src/core/scope.c
b/src/core/scope.c
index e0de951b11cd613dcf0048b57c1fea2918204568..20a969d913d30c605a61304ef3654ea4dffed9de 100644
(file)
--- 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;
}