提交 407af46a 编写于 作者: O Oleg Nesterov 提交者: Linus Torvalds

wait_task_zombie: remove unneeded child->signal check

A zombie must have a valid ->signal, we are going to release it and
__exit_signal() starts with BUG_ON(!sig).
Signed-off-by: NOleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 a8b0ac08
......@@ -1201,7 +1201,7 @@ static int wait_task_zombie(struct task_struct *p, int noreap,
return 0;
}
if (likely(p->real_parent == p->parent) && likely(p->signal)) {
if (likely(p->real_parent == p->parent)) {
struct signal_struct *psig;
struct signal_struct *sig;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册