mirror of
git://github.com/lxc/lxc
synced 2025-09-04 19:19:34 +00:00
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: Christian Brauner <christian.brauner@canonical.com>
This commit is contained in:
@@ -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;
|
||||||
|
518
src/lxc/start.c
518
src/lxc/start.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user