[CRIU] [PATCH 3/3] show: Always print process' exit_code

Cyrill Gorcunov gorcunov at openvz.org
Mon Jan 30 08:31:30 EST 2012


It's suitable not for info only but in
debug purose as well.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-show.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/cr-show.c b/cr-show.c
index 267380a..3136b24 100644
--- a/cr-show.c
+++ b/cr-show.c
@@ -402,9 +402,8 @@ static void show_core_rest(int fd_core)
 		(int)tc.task_state,
 		task_state_str((int)tc.task_state));
 
-	if (tc.task_state == TASK_DEAD)
-		pr_info("\t   Exit code: %u\n",
-			(unsigned int)tc.exit_code);
+	pr_info("\t   Exit code: %u\n",
+		(unsigned int)tc.exit_code);
 
 	pr_info("\tBrk:          %lx\n", tc.mm_brk);
 	pr_info("\tStart code:   %lx\n", tc.mm_start_code);
-- 
1.7.7.6



More information about the CRIU mailing list