[CRIU] [crtools-bot] restore: Make sure exit_code is < 128

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


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 4a7764c5ee425be4d85eba89ed704012982c289f
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Mon Jan 30 17:04:24 2012 +0400

    restore: Make sure exit_code is < 128
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
    Acked-by: Pavel Emelyanov <xemul 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);


More information about the CRIU mailing list