Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] coredump: copy_process: don't check SIGNAL_GROUP_EXIT

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>

authored by

Oleg Nesterov and committed by
Linus Torvalds
cf2dfbfb 5debfa6d

-12
-12
kernel/fork.c
··· 1156 1156 } 1157 1157 1158 1158 if (clone_flags & CLONE_THREAD) { 1159 - /* 1160 - * Important: if an exit-all has been started then 1161 - * do not create this new thread - the whole thread 1162 - * group is supposed to exit anyway. 1163 - */ 1164 - if (current->signal->flags & SIGNAL_GROUP_EXIT) { 1165 - spin_unlock(&current->sighand->siglock); 1166 - write_unlock_irq(&tasklist_lock); 1167 - retval = -EAGAIN; 1168 - goto bad_fork_cleanup_namespace; 1169 - } 1170 - 1171 1159 p->group_leader = current->group_leader; 1172 1160 list_add_tail_rcu(&p->thread_group, &p->group_leader->thread_group); 1173 1161