]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
node.py: try to fix rlimit-setting again
authorBrian Warner <warner@allmydata.com>
Fri, 16 Nov 2007 23:12:38 +0000 (16:12 -0700)
committerBrian Warner <warner@allmydata.com>
Fri, 16 Nov 2007 23:12:38 +0000 (16:12 -0700)
src/allmydata/node.py

index 6b07c0b94669c7380b2f6f866b0ff8d2c769f5d2..99b559f2b81efcd2a6e2619714dc751c5fb46fff 100644 (file)
@@ -114,7 +114,7 @@ class Node(service.MultiService):
                 # it doesn't work on linux (on which both the hard and
                 # soft limits are set to 1024 by default).
                 resource.setrlimit(resource.RLIMIT_NOFILE, (-1,-1))
-                new[0] = resource.getrlimit(resource.RLIMIT_NOFILE)
+                new = resource.getrlimit(resource.RLIMIT_NOFILE)
                 if new[0] == current[0]:
                     # probably cygwin, which ignores -1. Use a real value.
                     resource.setrlimit(resource.RLIMIT_NOFILE, (3200,-1))