[CRIU] [PATCH] parasite: use a correct original registers
Andrey Vagin
avagin at openvz.org
Fri May 24 17:16:57 EDT 2013
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;
}
--
1.8.2
More information about the CRIU
mailing list