diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 6b2e4cf3e140..44d6c6e3896d 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -112,6 +112,8 @@ static void __exit_signal(struct task_struct *tsk) | |||
112 | sig = NULL; /* Marker for below. */ | 112 | sig = NULL; /* Marker for below. */ |
113 | } | 113 | } |
114 | 114 | ||
115 | __unhash_process(tsk); | ||
116 | |||
115 | tsk->signal = NULL; | 117 | tsk->signal = NULL; |
116 | cleanup_sighand(tsk); | 118 | cleanup_sighand(tsk); |
117 | spin_unlock(&sighand->siglock); | 119 | spin_unlock(&sighand->siglock); |
@@ -140,8 +142,6 @@ repeat: | |||
140 | BUG_ON(!list_empty(&p->ptrace_list) || !list_empty(&p->ptrace_children)); | 142 | BUG_ON(!list_empty(&p->ptrace_list) || !list_empty(&p->ptrace_children)); |
141 | __exit_signal(p); | 143 | __exit_signal(p); |
142 | 144 | ||
143 | __unhash_process(p); | ||
144 | |||
145 | /* | 145 | /* |
146 | * If we are the last non-leader member of the thread | 146 | * If we are the last non-leader member of the thread |
147 | * group, and the leader is zombie, then notify the | 147 | * group, and the leader is zombie, then notify the |