summaryrefslogtreecommitdiff
path: root/src/core/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-28 12:20:29 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-28 12:20:57 +0200
commitdd305ec9c6c2ef6e0b5e43de388a98825385b359 (patch)
tree4cf8e0bcfa7fdd29e17eda6aefdc6c97cc5a606b /src/core/execute.c
parent373a99e489ac0622ac2ed7f37e9670561c5835a8 (diff)
core: when we cannot add PID to a scope cgroup, log about it
Also, place the scope unit in failed state.
Diffstat (limited to 'src/core/execute.c')
-rw-r--r--src/core/execute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index bbd0d2c75d..9eba323529 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -1809,6 +1809,7 @@ static int exec_child(
log_close();
}
}
+
execve(command->path, final_argv, final_env);
*exit_status = EXIT_EXEC;
return -errno;
@@ -1903,7 +1904,7 @@ int exec_spawn(ExecCommand *command,
* sure that when we kill the cgroup the process will be
* killed too). */
if (params->cgroup_path)
- cg_attach(SYSTEMD_CGROUP_CONTROLLER, params->cgroup_path, pid);
+ (void) cg_attach(SYSTEMD_CGROUP_CONTROLLER, params->cgroup_path, pid);
exec_status_start(&command->exec_status, pid);