siginfo: Fix offset to per-thread siginfos

Submitted by Pavel Emelianov on May 30, 2016, 2:53 p.m.

Details

Message ID 574C53D6.2010404@virtuozzo.com
State Accepted
Series "siginfo: Fix offset to per-thread siginfos"
Commit 84c2b0c0ed6966ce4f9b29c4e0ea3a9f45615e69
Headers show

Commit Message

Pavel Emelianov May 30, 2016, 2:53 p.m.
Thread ones start after shared.

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

Patch hide | download patch | download mbox

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;