|
@@ -2738,7 +2738,7 @@ void __do_SAK(struct tty_struct *tty)
|
|
do_each_pid_task(session, PIDTYPE_SID, p) {
|
|
do_each_pid_task(session, PIDTYPE_SID, p) {
|
|
tty_notice(tty, "SAK: killed process %d (%s): by session\n",
|
|
tty_notice(tty, "SAK: killed process %d (%s): by session\n",
|
|
task_pid_nr(p), p->comm);
|
|
task_pid_nr(p), p->comm);
|
|
- send_sig(SIGKILL, p, 1);
|
|
|
|
|
|
+ group_send_sig_info(SIGKILL, SEND_SIG_PRIV, p, PIDTYPE_SID);
|
|
} while_each_pid_task(session, PIDTYPE_SID, p);
|
|
} while_each_pid_task(session, PIDTYPE_SID, p);
|
|
|
|
|
|
/* Now kill any processes that happen to have the tty open */
|
|
/* Now kill any processes that happen to have the tty open */
|
|
@@ -2746,7 +2746,7 @@ void __do_SAK(struct tty_struct *tty)
|
|
if (p->signal->tty == tty) {
|
|
if (p->signal->tty == tty) {
|
|
tty_notice(tty, "SAK: killed process %d (%s): by controlling tty\n",
|
|
tty_notice(tty, "SAK: killed process %d (%s): by controlling tty\n",
|
|
task_pid_nr(p), p->comm);
|
|
task_pid_nr(p), p->comm);
|
|
- send_sig(SIGKILL, p, 1);
|
|
|
|
|
|
+ group_send_sig_info(SIGKILL, SEND_SIG_PRIV, p, PIDTYPE_SID);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
task_lock(p);
|
|
task_lock(p);
|
|
@@ -2754,7 +2754,7 @@ void __do_SAK(struct tty_struct *tty)
|
|
if (i != 0) {
|
|
if (i != 0) {
|
|
tty_notice(tty, "SAK: killed process %d (%s): by fd#%d\n",
|
|
tty_notice(tty, "SAK: killed process %d (%s): by fd#%d\n",
|
|
task_pid_nr(p), p->comm, i - 1);
|
|
task_pid_nr(p), p->comm, i - 1);
|
|
- force_sig(SIGKILL, p);
|
|
|
|
|
|
+ group_send_sig_info(SIGKILL, SEND_SIG_PRIV, p, PIDTYPE_SID);
|
|
}
|
|
}
|
|
task_unlock(p);
|
|
task_unlock(p);
|
|
} while_each_thread(g, p);
|
|
} while_each_thread(g, p);
|