mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 13:51:24 +03:00
cgroup: clean-ups
This commit is contained in:
parent
816f25e86a
commit
2d76d14ea3
@ -1547,8 +1547,7 @@ int exec_spawn(ExecCommand *command,
|
|||||||
* outside of the cgroup) and in the parent (so that we can be
|
* outside of the cgroup) and in the parent (so that we can be
|
||||||
* sure that when we kill the cgroup the process will be
|
* sure that when we kill the cgroup the process will be
|
||||||
* killed too). */
|
* killed too). */
|
||||||
if (cgroup_bondings)
|
cgroup_bonding_install_list(cgroup_bondings, pid, cgroup_suffix);
|
||||||
cgroup_bonding_install_list(cgroup_bondings, pid, cgroup_suffix);
|
|
||||||
|
|
||||||
exec_status_start(&command->exec_status, pid);
|
exec_status_start(&command->exec_status, pid);
|
||||||
|
|
||||||
|
@ -697,7 +697,13 @@ int cg_attach(const char *controller, const char *path, pid_t pid) {
|
|||||||
return write_string_file(fs, c);
|
return write_string_file(fs, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
int cg_set_group_access(const char *controller, const char *path, mode_t mode, uid_t uid, gid_t gid) {
|
int cg_set_group_access(
|
||||||
|
const char *controller,
|
||||||
|
const char *path,
|
||||||
|
mode_t mode,
|
||||||
|
uid_t uid,
|
||||||
|
gid_t gid) {
|
||||||
|
|
||||||
_cleanup_free_ char *fs = NULL;
|
_cleanup_free_ char *fs = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user