chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nspawn: change filesystem type from "bind" to NULL in mount() syscalls
[elogind.git]
/
src
/
core
/
scope.c
diff --git
a/src/core/scope.c
b/src/core/scope.c
index a0e473253349e252a169dd60f24b5117145a96c0..8b2bb29ed8a9f4807d2f518cff0894565387fa8d 100644
(file)
--- a/
src/core/scope.c
+++ b/
src/core/scope.c
@@
-171,7
+171,7
@@
static int scope_load(Unit *u) {
return scope_verify(s);
}
return scope_verify(s);
}
-static int scope_coldplug(Unit *u) {
+static int scope_coldplug(Unit *u
, Hashmap *deferred_work
) {
Scope *s = SCOPE(u);
int r;
Scope *s = SCOPE(u);
int r;
@@
-286,6
+286,9
@@
static int scope_start(Unit *u) {
if (!u->transient && UNIT(s)->manager->n_reloading <= 0)
return -ENOENT;
if (!u->transient && UNIT(s)->manager->n_reloading <= 0)
return -ENOENT;
+ (void) unit_realize_cgroup(u);
+ (void) unit_reset_cpu_usage(u);
+
r = unit_attach_pids_to_cgroup(u);
if (r < 0)
return r;
r = unit_attach_pids_to_cgroup(u);
if (r < 0)
return r;