Commit d79fc6d3 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

parasite: use a correct original registers

Use original registers, which belong to the executing thread.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 459ca476
......@@ -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, &regs_orig)) {
pr_perror("Can't set registers (pid: %d)", pid);
goto err;
}
......
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