For non-embedded platforms, increase the size of the argument list.

Note that this results in more kernel virtual memory being reserved for
temporary storage of the args.  The args temporary space is allocated out
of exec_map (a submap of kernel_map).  This will use roughly 4MB of KVM.

OK'ed by:	dg
This commit is contained in:
obrien 2005-02-18 08:01:59 +00:00
parent 1da3314647
commit 7aa570c0ee

View File

@ -43,7 +43,11 @@
* Do not add any new variables here. (See the comment at the end of
* the file for why.)
*/
#if defined(__arm__) || defined(__powerpc__)
#define ARG_MAX 65536 /* max bytes for an exec function */
#else
#define ARG_MAX 262144 /* max bytes for an exec function */
#endif
#ifndef CHILD_MAX
#define CHILD_MAX 40 /* max simultaneous processes */
#endif