mirror of
git://github.com/lxc/lxc
synced 2025-08-31 16:57:57 +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)) {
|
||||
ret = WEXITSTATUS(status);
|
||||
if (ret)
|
||||
INFO("child <%d> ended on error (%d)", pid, ret);
|
||||
INFO("Child <%d> ended on error (%d).", pid, ret);
|
||||
}
|
||||
|
||||
if (WIFSIGNALED(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;
|
||||
|
526
src/lxc/start.c
526
src/lxc/start.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user