Disambiguation for panic_timeout's sysctl

From: Jan Engelhardt
Date: Sun Oct 31 2004 - 11:29:37 EST




The /proc/sys/kernel/panic file looked to me like it was something like
/proc/sysrq-trigger -- until I looked into the kernel sources which reveal that
it sets the variable "panic_timeout" in kernel/sched.c.
I'm up for disambiguating this, patch appended.


Signed-off by: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>

# File: fixpanicname.diff
# Class: Disambiguation
#
--- linux-2.6.9-rc2/kernel/sysctl.c 2004-10-31 17:10:00.976522528 +0100
+++ modified/kernel/sysctl.c 2004-10-31 17:09:50.970043000 +0100
@@ -276,7 +276,7 @@ static ctl_table kern_table[] = {
},
{
.ctl_name = KERN_PANIC,
- .procname = "panic",
+ .procname = "panic_timeout",
.data = &panic_timeout,
.maxlen = sizeof(int),
.mode = 0644,
## eof


Jan Engelhardt
--
Gesellschaft fÃr Wissenschaftliche Datenverarbeitung
Am Fassberg, 37077 GÃttingen, www.gwdg.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/