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 e800376dc..4f7fef2b9 100644
--- a/pym/portage_exec.py
+++ b/pym/portage_exec.py
@@ -19,7 +19,7 @@ except ImportError:
if os.path.isdir("/proc/%i/fd" % os.getpid()):
def get_open_fds():
- return map(int, os.listdir("/proc/%i/fd" % os.getpid()))
+ return map(int, [fd for fd in os.listdir("/proc/%i/fd" % os.getpid()) if fd.isdigit()])
else:
def get_open_fds():
return xrange(max_fd_limit)