From b573f6f81c4500af9a4d08d58746d59c2b95f67c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 1 Dec 2011 13:05:24 -0800 Subject: [PATCH] _emerge/SubProcess.py: support int fd in _files --- pym/_emerge/SubProcess.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/SubProcess.py b/pym/_emerge/SubProcess.py index b99cf0bb1..37922dc66 100644 --- a/pym/_emerge/SubProcess.py +++ b/pym/_emerge/SubProcess.py @@ -120,7 +120,10 @@ class SubProcess(AbstractPollTask): if self._files is not None: for f in self._files.values(): - f.close() + if isinstance(f, int): + os.close(f) + else: + f.close() self._files = None def _set_returncode(self, wait_retval): -- 2.26.2