]> arthur.barton.de Git - bup.git/commit
Choose 2M when SC_ARG_MAX is -1 (unspecified)
authorRob Browning <rlb@defaultvalue.org>
Sun, 29 Nov 2015 18:38:03 +0000 (12:38 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 29 Nov 2015 18:58:09 +0000 (12:58 -0600)
commitaa29a8483010e4c63f3a3d9234080f9b7fcd8a35
tree445e0801ad6727d522386a3656716e451714039e
parentb283da69ee1a65502f9ddbb7e4603af34e7bde6b
Choose 2M when SC_ARG_MAX is -1 (unspecified)

When sysconf() returns -1 for a limit, that means the limit is
"unspecified".  In that case, choose 2M for SC_ARG_MAX instead of the
POSIX minimum, matching (somewhat arbitrarily) the value on a current
16GB Debian amd64 system.

The POSIX minimum was unnecessary, likely inefficient, and causing
unnecessary failures.

Thanks to Mark J Hewitt <m.hewitt@computer.org> for reporting the
problem and tracking down the cause.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/helpers.py