diff options
| author | William Lee Irwin III <wli@holomorphy.com> | 2004-10-18 18:10:43 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-18 18:10:43 -0700 |
| commit | 7c11d7fc7017101d6910ef2fe03c83149513c29f (patch) | |
| tree | 4f252989d2c46c612ce8e6a82eb076f2f47d4308 /include/linux | |
| parent | 47cfcbb8498372e1f2a15281ba1a065bf883d676 (diff) | |
[PATCH] pidhashing: lower PID_MAX_LIMIT for 32-bit machines
/proc/ breaks when PID_MAX_LIMIT is elevated on 32-bit, so this patch lowers
it there.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/threads.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/threads.h b/include/linux/threads.h index 047e28bd7d8e..4243c55cce87 100644 --- a/include/linux/threads.h +++ b/include/linux/threads.h @@ -30,6 +30,6 @@ /* * A maximum of 4 million PIDs should be enough for a while: */ -#define PID_MAX_LIMIT (4*1024*1024) +#define PID_MAX_LIMIT (sizeof(long) > 4 ? 4*1024*1024 : PID_MAX_DEFAULT) #endif |
