Commit 4a7764c5 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: Make sure exit_code is < 128

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@openvz.org>
parent a00b90c0
...@@ -1160,7 +1160,7 @@ static int restore_one_zobie(int pid, int exit_code) ...@@ -1160,7 +1160,7 @@ static int restore_one_zobie(int pid, int exit_code)
exit_code = 0; exit_code = 0;
} }
exit(exit_code >> 8); exit((exit_code >> 8) & 0x7f);
/* never reached */ /* never reached */
BUG_ON(1); BUG_ON(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment