execute: improve exec_spawn() logging

This commit is contained in:
Lennart Poettering 2010-04-10 17:46:01 +02:00
parent 6326a423e7
commit 1a63a75010

View file

@ -457,13 +457,18 @@ int exec_spawn(ExecCommand *command,
pid_t pid; pid_t pid;
int r; int r;
char *line;
assert(command); assert(command);
assert(context); assert(context);
assert(ret); assert(ret);
assert(fds || n_fds <= 0); assert(fds || n_fds <= 0);
log_debug("About to execute %s", command->path); if (!(line = exec_command_line(command)))
return -ENOMEM;
log_debug("About to execute: %s", line);
free(line);
if (cgroup_bondings) if (cgroup_bondings)
if ((r = cgroup_bonding_realize_list(cgroup_bondings))) if ((r = cgroup_bonding_realize_list(cgroup_bondings)))