diff options
author | Naohiro Ooiwa <nooiwa@miraclelinux.com> | 2008-10-16 01:01:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:31 -0400 |
commit | b4236f81f2347096df650fb072f50d67bb6066a2 (patch) | |
tree | a9b7816e5774b481da76a65f4fd8246b40719c98 /drivers/char/sysrq.c | |
parent | 25ddbb18aae33ad255eb9f35aacebe3af01e1e9c (diff) |
sysrq: add enable_mask in sysrq_moom_op
It is written in the Documentation/sysrq.txt that oom-killer is enabled
when we set "64" in /proc/sys/kernel/sysrq:
<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 set in sysrq_moom_op.
Signed-off-by: Naohiro Ooiwa <nooiwa@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/sysrq.c')
-rw-r--r-- | 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 8fdfe9c871e3..2aa79ab1930d 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c | |||
@@ -326,6 +326,7 @@ static struct sysrq_key_op sysrq_moom_op = { | |||
326 | .handler = sysrq_handle_moom, | 326 | .handler = sysrq_handle_moom, |
327 | .help_msg = "Full", | 327 | .help_msg = "Full", |
328 | .action_msg = "Manual OOM execution", | 328 | .action_msg = "Manual OOM execution", |
329 | .enable_mask = SYSRQ_ENABLE_SIGNAL, | ||
329 | }; | 330 | }; |
330 | 331 | ||
331 | static void sysrq_handle_kill(int key, struct tty_struct *tty) | 332 | static void sysrq_handle_kill(int key, struct tty_struct *tty) |