From 2fc524799648e73429ed185fdd2510b4a16c399e Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Fri, 16 Nov 2007 16:12:38 -0700
Subject: [PATCH] node.py: try to fix rlimit-setting again

---
 src/allmydata/node.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/allmydata/node.py b/src/allmydata/node.py
index 6b07c0b9..99b559f2 100644
--- a/src/allmydata/node.py
+++ b/src/allmydata/node.py
@@ -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))
-- 
2.45.2