linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.4.22-pre10] SAK: If a process is killed by SAK, give us an info about which one was killed
@ 2003-08-01 10:40 Marc-Christian Petersen
  2003-08-01 12:09 ` Alan Cox
  0 siblings, 1 reply; 8+ messages in thread
From: Marc-Christian Petersen @ 2003-08-01 10:40 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: lkml

[-- Attachment #1: Type: text/plain, Size: 92 bytes --]

Hi Marcelo,

$subject says it all.

Please apply for 2.4.22-pre10. Thank you :)

ciao, Marc

[-- Attachment #2: 2.4-SAK-info.patch --]
[-- Type: text/x-diff, Size: 698 bytes --]

--- a/drivers/char/tty_io.c	Fri Jan 25 15:49:44 2002
+++ b/drivers/char/tty_io.c	Tue Mar 19 08:28:27 2002
@@ -1888,6 +1888,9 @@
	for_each_task(p) {
		if ((p->tty == tty) ||
		    ((session > 0) && (p->session == session))) {
+				printk(KERN_NOTICE "SAK: killed process %d"
+				" (%s): p->session==tty->session\n",
+				p->pid, p->comm);
			send_sig(SIGKILL, p, 1);
			continue;
		}
@@ -1898,6 +1898,9 @@
				filp = fcheck_files(p->files, i);
				if (filp && (filp->f_op == &tty_fops) &&
				    (filp->private_data == tty)) {
+						printk(KERN_NOTICE "SAK: killed process %d"
+						" (%s): fd#%d opened to the tty\n",
+						p->pid, p->comm, i);
					send_sig(SIGKILL, p, 1);
					break;
				}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-08-05 22:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-01 10:40 [PATCH 2.4.22-pre10] SAK: If a process is killed by SAK, give us an info about which one was killed Marc-Christian Petersen
2003-08-01 12:09 ` Alan Cox
2003-08-01 12:26   ` Marc-Christian Petersen
2003-08-01 12:38     ` Marc-Christian Petersen
2003-08-01 12:57     ` Alan Cox
2003-08-05 10:59   ` Pavel Machek
2003-08-05 16:38     ` Alan Cox
2003-08-05 17:09       ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).