We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd69edd commit a436184Copy full SHA for a436184
kernel/signal.c
@@ -2727,12 +2727,15 @@ bool get_signal(struct ksignal *ksig)
2727
/* Has this task already been marked for death? */
2728
if ((signal->flags & SIGNAL_GROUP_EXIT) ||
2729
signal->group_exec_task) {
2730
- clear_siginfo(&ksig->info);
2731
- ksig->info.si_signo = signr = SIGKILL;
+ signr = SIGKILL;
2732
sigdelset(¤t->pending.signal, SIGKILL);
2733
trace_signal_deliver(SIGKILL, SEND_SIG_NOINFO,
2734
- &sighand->action[SIGKILL - 1]);
+ &sighand->action[SIGKILL-1]);
2735
recalc_sigpending();
+ /*
2736
+ * implies do_group_exit() or return to PF_USER_WORKER,
2737
+ * no need to initialize ksig->info/etc.
2738
+ */
2739
goto fatal;
2740
}
2741
0 commit comments