[CRIU] [PATCH] parasite: use a correct original registers
Pavel Emelyanov
xemul at parallels.com
Mon May 27 05:10:54 EDT 2013
On 05/25/2013 01:16 AM, Andrey Vagin wrote:
> Use original registers, which belong to the executing thread.
>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
> parasite-syscall.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/parasite-syscall.c b/parasite-syscall.c
> index 37a9c4f..f44f406 100644
> --- a/parasite-syscall.c
> +++ b/parasite-syscall.c
> @@ -133,7 +133,7 @@ retry_signal:
> * and retry.
> */
>
> - if (ptrace(PTRACE_SETREGS, pid, NULL, &ctl->threads[0].regs_orig)) {
> + if (ptrace(PTRACE_SETREGS, pid, NULL, ®s_orig)) {
> pr_perror("Can't set registers (pid: %d)", pid);
> goto err;
> }
>
Applied
More information about the CRIU
mailing list