Messages in this thread Patch in this message | | | From | Marc-Christian Petersen <> | Subject | [PATCH 2.4.22-pre10] SAK: If a process is killed by SAK, give us an info about which one was killed | Date | Fri, 1 Aug 2003 12:40:23 +0200 |
| |
Hi Marcelo,
$subject says it all.
Please apply for 2.4.22-pre10. Thank you :)
ciao, Marc --- 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; }
| |