[CRIU] [PATCH cr 2/2] parasite: return exit code from parasite

Andrew Vagin avagin at parallels.com
Tue Jun 26 12:04:21 EDT 2012


1/1, sorry for this mess

Reported-by: Pavel Emelyanov <xemul at parallels.com>

On Tue, Jun 26, 2012 at 08:00:35PM +0400, Andrey Vagin wrote:
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  parasite-syscall.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 

> diff --git a/parasite-syscall.c b/parasite-syscall.c
> index a26d20e..7c34d0c 100644
> --- a/parasite-syscall.c
> +++ b/parasite-syscall.c
> @@ -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);

> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://openvz.org/mailman/listinfo/criu



More information about the CRIU mailing list