diff options
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/dbapi/_MergeProcess.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/dbapi/_MergeProcess.py b/pym/portage/dbapi/_MergeProcess.py index 21d43dd83..9a185b4a6 100644 --- a/pym/portage/dbapi/_MergeProcess.py +++ b/pym/portage/dbapi/_MergeProcess.py @@ -157,7 +157,11 @@ class MergeProcess(SpawnProcess): os.close(elog_reader_fd) # TODO: Find out why PyPy 1.8 with close_fds=True triggers - # "[Errno 9] Bad file descriptor" in subprocesses. + # "[Errno 9] Bad file descriptor" in subprocesses. It could + # be due to garbage collection of file objects that were not + # closed before going out of scope, since PyPy's garbage + # collector does not support the refcounting semantics that + # CPython does. close_fds = platform.python_implementation() != 'PyPy' portage.process._setup_pipes(fd_pipes, close_fds=close_fds) |