Skip to content
Snippets Groups Projects
Commit 9bff8f1c authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Increase NOFILE limit for cygwin

parent 0765e25c
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ rm -rf build
patch -N -p0 < $ROOTPATH/src/duplicity-patches/timeview.patch
patch -N -p0 < $ROOTPATH/src/duplicity-patches/syspath.patch
patch -N -p0 < $ROOTPATH/src/duplicity-patches/cacert.patch
patch -N -p0 < $ROOTPATH/src/duplicity-patches/setrlimit.patch
LIBRSYNC_DIR=/usr/local python setup.py build --executable="/usr/bin/env python"
cd build/lib.*
cp -pr * $DUPL/lib
......
=== modified file 'bin/duplicity'
--- bin/duplicity 2016-01-24 18:11:37 +0000
+++ bin/duplicity 2016-02-23 14:37:53 +0000
@@ -1262,9 +1262,9 @@
log.ErrorCode.get_ulimit_failed)
maxopen = min([l for l in (soft, hard) if l > -1])
if maxopen < 1024:
- log.FatalError(_("Max open files of %s is too low, should be >= 1024.\n"
- "Use 'ulimit -n 1024' or higher to correct.\n") % (maxopen,),
- log.ErrorCode.maxopen_too_low)
+ log.Info(_("Increasing max open files from %s to %s") %
+ (maxopen, 1024))
+ resource.setrlimit(resource.RLIMIT_NOFILE, (1024, 3200))
def log_startup_parms(verbosity=log.INFO):
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment