Use soft limit, not hard limit.
authorBrian Harring <ferringb@gentoo.org>
Wed, 14 Dec 2005 06:28:31 +0000 (06:28 -0000)
committerBrian Harring <ferringb@gentoo.org>
Wed, 14 Dec 2005 06:28:31 +0000 (06:28 -0000)
svn path=/main/trunk/; revision=2365

pym/portage_exec.py

index c62d0a549a45ca1e76189043b3417cdec499b1ff..79afbf76ed94bbdc1343ced644916f4976161a18 100644 (file)
@@ -12,7 +12,7 @@ from portage_const import BASH_BINARY, SANDBOX_BINARY
 
 try:
        import resource
-       max_fd_limit = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
+       max_fd_limit = resource.getrlimit(resource.RLIMIT_NOFILE)[0]
 except ImportError:
        max_fd_limit = 256