diff options
Diffstat (limited to 'kernel/fork.c')
| -rw-r--r-- | kernel/fork.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 4bd2f516401f..adefc1131f27 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
| @@ -1125,8 +1125,8 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
| 1125 | */ | 1125 | */ |
| 1126 | p->group_leader = p; | 1126 | p->group_leader = p; |
| 1127 | INIT_LIST_HEAD(&p->thread_group); | 1127 | INIT_LIST_HEAD(&p->thread_group); |
| 1128 | INIT_LIST_HEAD(&p->ptrace_children); | 1128 | INIT_LIST_HEAD(&p->ptrace_entry); |
| 1129 | INIT_LIST_HEAD(&p->ptrace_list); | 1129 | INIT_LIST_HEAD(&p->ptraced); |
| 1130 | 1130 | ||
| 1131 | /* Now that the task is set up, run cgroup callbacks if | 1131 | /* Now that the task is set up, run cgroup callbacks if |
| 1132 | * necessary. We need to run them before the task is visible | 1132 | * necessary. We need to run them before the task is visible |
| @@ -1198,7 +1198,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
| 1198 | } | 1198 | } |
| 1199 | 1199 | ||
| 1200 | if (likely(p->pid)) { | 1200 | if (likely(p->pid)) { |
| 1201 | add_parent(p); | 1201 | list_add_tail(&p->sibling, &p->real_parent->children); |
| 1202 | if (unlikely(p->ptrace & PT_PTRACED)) | 1202 | if (unlikely(p->ptrace & PT_PTRACED)) |
| 1203 | __ptrace_link(p, current->parent); | 1203 | __ptrace_link(p, current->parent); |
| 1204 | 1204 | ||
