summaryrefslogtreecommitdiffstats
path: root/pym/portage_exec.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage_exec.py')
-rw-r--r--pym/portage_exec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage_exec.py b/pym/portage_exec.py
index c62d0a549..79afbf76e 100644
--- a/pym/portage_exec.py
+++ b/pym/portage_exec.py
@@ -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