Commit 7c11d7fc authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 47cfcbb8
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment