pids: de_thread: don't clear session/pgrp pids for the old leader
Changes
1 files changed · +0 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| kernel/pid.c | modified | +0 | −1 | View file |
kernel/pid.c
View filediff --git a/kernel/pid.c b/kernel/pid.c
index a9ae9f7..e9a31d3 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -354,7 +354,6 @@ void transfer_pid(struct task_struct *old, struct task_struct *new,
{
new->pids[type].pid = old->pids[type].pid;
hlist_replace_rcu(&old->pids[type].node, &new->pids[type].node);
- old->pids[type].pid = NULL;
}
struct task_struct *pid_task(struct pid *pid, enum pid_type type)