chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: when trimming cgroup trees, honour sticky bit of tasks file
[elogind.git]
/
src
/
execute.c
diff --git
a/src/execute.c
b/src/execute.c
index c73b0c6c04866704d3af9f750ea5143669daebfa..1ab321851792f8d772dd4176f38d4cfccb9948e9 100644
(file)
--- a/
src/execute.c
+++ b/
src/execute.c
@@
-930,6
+930,7
@@
int exec_spawn(ExecCommand *command,
bool apply_tty_stdin,
bool confirm_spawn,
CGroupBonding *cgroup_bondings,
bool apply_tty_stdin,
bool confirm_spawn,
CGroupBonding *cgroup_bondings,
+ CGroupAttribute *cgroup_attributes,
pid_t *ret) {
pid_t pid;
pid_t *ret) {
pid_t pid;
@@
-973,9
+974,11
@@
int exec_spawn(ExecCommand *command,
log_debug("About to execute: %s", line);
free(line);
log_debug("About to execute: %s", line);
free(line);
- if (cgroup_bondings)
- if ((r = cgroup_bonding_realize_list(cgroup_bondings)))
- goto fail_parent;
+ r = cgroup_bonding_realize_list(cgroup_bondings);
+ if (r < 0)
+ goto fail_parent;
+
+ cgroup_attribute_apply_list(cgroup_attributes, cgroup_bondings);
if ((pid = fork()) < 0) {
r = -errno;
if ((pid = fork()) < 0) {
r = -errno;