]> arthur.barton.de Git - bup.git/commit - cmd/midx-cmd.py
cmd/midx: use getrlimit() to find the max open files.
authorAvery Pennarun <apenwarr@gmail.com>
Mon, 6 Sep 2010 08:35:07 +0000 (01:35 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 6 Sep 2010 10:07:28 +0000 (03:07 -0700)
commit0f08180b6b09e7cca43042ba081a0885923f1f00
tree9b52e941685b5a2766eb2f540e89d1f714e87cdc
parent8417c11948532ba890b862dcad9d37810d482616
cmd/midx: use getrlimit() to find the max open files.

It turns out the default file limit on MacOS is 256, which is less than our
default of 500.  I guess this means trouble after all, so let's auto-detect
it.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/midx-cmd.py