2003-06-13 03:58:51

by Albert Cahalan

[permalink] [raw]
Subject: [PATCH] make pid_max readable

This is needed so that apps can set appropriate column
widths for PID display.

diff -Naurd old-2.5.70/kernel/sysctl.c new-2.5.70/kernel/sysctl.c
--- old-2.5.70/kernel/sysctl.c 2003-06-12 23:43:00.000000000 -0400
+++ new-2.5.70/kernel/sysctl.c 2003-06-12 23:44:18.000000000 -0400
@@ -539,7 +539,7 @@
.procname = "pid_max",
.data = &pid_max,
.maxlen = sizeof (int),
- .mode = 0600,
+ .mode = 0644,
.proc_handler = &proc_dointvec,
},
{