Commit 97a08a80 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

parasite: return exit code from parasite

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3f6f2916
......@@ -240,6 +240,8 @@ static int parasite_execute_by_pid(unsigned long cmd, struct parasite_ctl *ctl,
parasite_setup_regs(ctl->parasite_ip, &regs);
ret = __parasite_execute(ctl, pid, &regs);
if (ret == 0)
ret = (int)regs.ax;
if (args)
memcpy(args, ctl->addr_args, args_size);
......
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