Skip to content

Commit

Permalink
[PATCH] coredump: copy_process: don't check SIGNAL_GROUP_EXIT
Browse files Browse the repository at this point in the history
After the previous patch SIGNAL_GROUP_EXIT implies a pending SIGKILL, we
can remove this check from copy_process() because we already checked
!signal_pending().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jun 26, 2006
1 parent 5debfa6 commit cf2dfbf
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -1156,18 +1156,6 @@ static task_t *copy_process(unsigned long clone_flags,
}

if (clone_flags & CLONE_THREAD) {
/*
* Important: if an exit-all has been started then
* do not create this new thread - the whole thread
* group is supposed to exit anyway.
*/
if (current->signal->flags & SIGNAL_GROUP_EXIT) {
spin_unlock(&current->sighand->siglock);
write_unlock_irq(&tasklist_lock);
retval = -EAGAIN;
goto bad_fork_cleanup_namespace;
}

p->group_leader = current->group_leader;
list_add_tail_rcu(&p->thread_group, &p->group_leader->thread_group);

Expand Down

0 comments on commit cf2dfbf

Please sign in to comment.