[CRIU] [PATCH 1/3] restore: Make sure exit_code is < 128

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


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

diff --git a/cr-restore.c b/cr-restore.c
index 4c94936..172bc6b 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1160,7 +1160,7 @@ static int restore_one_zobie(int pid, int exit_code)
 		exit_code = 0;
 	}
 
-	exit(exit_code >> 8);
+	exit((exit_code >> 8) & 0x7f);
 
 	/* never reached */
 	BUG_ON(1);
-- 
1.7.7.6



More information about the CRIU mailing list