[CRIU] [PATCH] siginfo: Fix offset to per-thread siginfos

Pavel Emelyanov xemul at virtuozzo.com
Mon May 30 07:53:10 PDT 2016


Thread ones start after shared.

Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 criu/cr-restore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index a1959e8..0014867 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -2894,7 +2894,7 @@ static int sigreturn_restore(pid_t pid, struct task_restore_args *task_args, uns
 	 * Fill up per-thread data.
 	 */
 	creds_pos_next = creds_pos;
-	siginfo_n = 0;
+	siginfo_n = task_args->siginfo_n;
 	for (i = 0; i < current->nr_threads; i++) {
 		CoreEntry *tcore;
 		struct rt_sigframe *sigframe;
-- 
2.5.0


More information about the CRIU mailing list