summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index e22ffd455..b13733fa4 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -7896,6 +7896,8 @@ def can_poll_pty():
got_pty, master_fd, slave_fd = \
portage._create_pty_or_pipe(copy_term_size=sys.stdout.fileno())
if not got_pty:
+ os.close(master_fd)
+ os.close(slave_fd)
_can_poll_pty = False
return _can_poll_pty