diff options
-rw-r--r-- | kernel/signal.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 4333b6dbb424..ea90c34e9348 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -911,27 +911,6 @@ __group_complete_signal(int sig, struct task_struct *p) | |||
911 | } while_each_thread(p, t); | 911 | } while_each_thread(p, t); |
912 | return; | 912 | return; |
913 | } | 913 | } |
914 | |||
915 | /* | ||
916 | * There will be a core dump. We make all threads other | ||
917 | * than the chosen one go into a group stop so that nothing | ||
918 | * happens until it gets scheduled, takes the signal off | ||
919 | * the shared queue, and does the core dump. This is a | ||
920 | * little more complicated than strictly necessary, but it | ||
921 | * keeps the signal state that winds up in the core dump | ||
922 | * unchanged from the death state, e.g. which thread had | ||
923 | * the core-dump signal unblocked. | ||
924 | */ | ||
925 | rm_from_queue(SIG_KERNEL_STOP_MASK, &t->pending); | ||
926 | rm_from_queue(SIG_KERNEL_STOP_MASK, &p->signal->shared_pending); | ||
927 | p->signal->group_stop_count = 0; | ||
928 | p->signal->group_exit_task = t; | ||
929 | p = t; | ||
930 | do { | ||
931 | p->signal->group_stop_count++; | ||
932 | signal_wake_up(t, t == p); | ||
933 | } while_each_thread(p, t); | ||
934 | return; | ||
935 | } | 914 | } |
936 | 915 | ||
937 | /* | 916 | /* |
@@ -1762,15 +1741,6 @@ static int handle_group_stop(void) | |||
1762 | { | 1741 | { |
1763 | int stop_count; | 1742 | int stop_count; |
1764 | 1743 | ||
1765 | if (current->signal->group_exit_task == current) { | ||
1766 | /* | ||
1767 | * Group stop is so we can do a core dump, | ||
1768 | * We are the initiating thread, so get on with it. | ||
1769 | */ | ||
1770 | current->signal->group_exit_task = NULL; | ||
1771 | return 0; | ||
1772 | } | ||
1773 | |||
1774 | if (current->signal->flags & SIGNAL_GROUP_EXIT) | 1744 | if (current->signal->flags & SIGNAL_GROUP_EXIT) |
1775 | /* | 1745 | /* |
1776 | * Group stop is so another thread can do a core dump, | 1746 | * Group stop is so another thread can do a core dump, |