[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
environment size limit in xargs.c
From: |
Alan Iwi |
Subject: |
environment size limit in xargs.c |
Date: |
Wed, 10 Oct 2001 16:37:14 +0100 (BST) |
For your information, there is a slightly over-cautious sanity check on
environment size in xargs.c (findutils 4.1.6), which causes xargs to refuse
to run in a situation where it would actually be fine.
The code says:
/* Sanity check for systems with huge ARG_MAX defines (e.g., Suns which
have it at 1 meg). Things will work fine with a large ARG_MAX but it
will probably hurt the system more than it needs to; an array of this
size is allocated. */
if (arg_max > 20 * 1024)
arg_max = 20 * 1024;
I'm using a Linux 2.4 system (ARG_MAX is 128k in <linux/limits.h>).
Please could you either raise the sanity-check limit, or restrict the
range of systems to which it applies, with appropriate "#ifdef" lines
around this bit of code?
Thanks,
Alan Iwi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- environment size limit in xargs.c,
Alan Iwi <=