Commit c11b6490 authored by Pavel Emelyanov's avatar Pavel Emelyanov

siginfo: Fix offset to per-thread siginfos

Thread ones start after shared.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent a17f01e3
......@@ -2862,7 +2862,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;
......
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