[<prev] [next>] [day] [month] [year] [list]
Date: Tue, 09 Sep 2008 20:33:45 +0900
From: Naohiro Ooiwa <nooiwa@...aclelinux.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] sysrq: Add enable_mask in sysrq_moom_op
Hi all
I found a little mistake.
It is written in the Documentation/sysrq.txt that oom-killer is enable
when we set "64" in /proc/sys/kernel/sysrq.
The following is it.
<Documentation/sysrq.txt>
Here is the list of possible values in /proc/sys/kernel/sysrq:
64 - enable signalling of processes (term, kill, oom-kill)
^^^^^^^^
but enable_mask is not in sysrq_moom_op.
Could you please check the following patch ?
Signed-off-by: Naohiro Ooiwa <nooiwa@...aclelinux.com>
---
drivers/char/sysrq.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c
index 8fdfe9c..2aa79ab 100644
--- a/drivers/char/sysrq.c
+++ b/drivers/char/sysrq.c
@@ -326,6 +326,7 @@ static struct sysrq_key_op sysrq_moom_op = {
.handler = sysrq_handle_moom,
.help_msg = "Full",
.action_msg = "Manual OOM execution",
+ .enable_mask = SYSRQ_ENABLE_SIGNAL,
};
static void sysrq_handle_kill(int key, struct tty_struct *tty)
--
1.5.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists