Commit c6677625 by Christian Brauner Committed by Stéphane Graber

start, error: improve log + non-functional changes

Improve log and comments in a bunch of places to make it easier for us on bug reports. Signed-off-by: 's avatarChristian Brauner <christian.brauner@canonical.com>
parent 1ba79bfe
...@@ -46,13 +46,12 @@ extern int lxc_error_set_and_log(int pid, int status) ...@@ -46,13 +46,12 @@ extern int lxc_error_set_and_log(int pid, int status)
if (WIFEXITED(status)) { if (WIFEXITED(status)) {
ret = WEXITSTATUS(status); ret = WEXITSTATUS(status);
if (ret) if (ret)
INFO("child <%d> ended on error (%d)", pid, ret); INFO("Child <%d> ended on error (%d).", pid, ret);
} }
if (WIFSIGNALED(status)) { if (WIFSIGNALED(status)) {
int signal = WTERMSIG(status); int signal = WTERMSIG(status);
INFO("Child <%d> ended on signal (%d).", pid, signal);
INFO("child <%d> ended on signal (%d)", pid, signal);
} }
return ret; return ret;
......
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