projects/linux·commit cf2dfbfb

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

cf2dfbfb · Oleg Nesterov <[email protected]> · 2006-06-26 00:26:10 -07:00

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 <[email protected]>
Cc: Roland McGrath <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
cf2dfbfbf4c5cb489ea12defd85a484307b955b8
Parents
5debfa6d

Changes

1 files changed · +0 −12

FileStatusAddDelContent
kernel/fork.cmodified+0−12View file

kernel/fork.c

View file
diff --git a/kernel/fork.c b/kernel/fork.c
index 79e9104..9b4e54e 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -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);