lkml.org 
[lkml]   [2006]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Magic SysRq SAK does nothing on serial consoles
Hi!

> Applying the attached patch resolved the problem for me; now when I
> send BREAK-k, the kernel prints `SysRq : SAK', then prints a couple
> of lines indicating that some processes have been killed, and then
> init spawns a new login process as I would expect.
>
> (The patch is defensively coded, since I wasn't sure whether
> port->info was guaranteeably non-NULL. If it is, the change can be
> even simpler!)

Try to find out if port->info can be NULL; then you should probably
resubmit, cc akpm and rmk. Also see Doc*/SubmittingPatches.

> --- linux-2.6.17.6.orig/include/linux/serial_core.h 2006-07-15 20:00:43.000000000 +0100
> +++ linux-2.6.17.6/include/linux/serial_core.h 2006-08-30 07:55:00.000000000 +0100
> @@ -411,7 +411,7 @@
> #ifdef SUPPORT_SYSRQ
> if (port->sysrq) {
> if (ch && time_before(jiffies, port->sysrq)) {
> - handle_sysrq(ch, regs, NULL);
> + handle_sysrq(ch, regs, port->info ? port->info->tty : NULL);
> port->sysrq = 0;
> return 1;
> }



--
Thanks for all the (sleeping) penguins.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-09-01 16:59    [W:0.033 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site