]> err.no Git - linux-2.6/blobdiff - kernel/pid.c
pids: de_thread: don't clear session/pgrp pids for the old leader
[linux-2.6] / kernel / pid.c
index a9ae9f7fb229fd5b34d6d963d080f5c047714708..e9a31d362b2805f30cc4cb5ef67a6fe0ec14ee3d 100644 (file)
@@ -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)