Commit 87af3ecd by Serge Hallyn Committed by Stéphane Graber

log errno when pclose fails

When lxc is executing a script and pclose fails, log the errno to help debug what happened. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 435d40f7
...@@ -283,8 +283,8 @@ static int run_script(const char *name, const char *section, ...@@ -283,8 +283,8 @@ static int run_script(const char *name, const char *section,
free(output); free(output);
if (pclose(f)) { if (pclose(f) == -1) {
ERROR("Script exited on error"); SYSERROR("Script exited on error");
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment