summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-09 20:03:37 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-09 20:03:37 +0000
commita946999a8ed558ed50d5a37a3b4eee9ccc40961a (patch)
tree8b7cac8a5560f2aa95b209f8e641e35d0e0229df
parent445daffe9b37122bd37a67e90156f75f4cfe03ae (diff)
downloadportage-a946999a8ed558ed50d5a37a3b4eee9ccc40961a.tar.gz
portage-a946999a8ed558ed50d5a37a3b4eee9ccc40961a.tar.bz2
portage-a946999a8ed558ed50d5a37a3b4eee9ccc40961a.zip
Remove redundant os.close(master_fd) call inside SpawnProcess._start() since
that file discriptor is referenced by a file object which already has an appropriate close() call. This fixes an 'IOError: [Errno 9] Bad file descriptor' exception which was raised when attempting to close the file object. svn path=/main/trunk/; revision=11666
-rw-r--r--pym/_emerge/__init__.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 65093ddd8..7b4067a88 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -2142,7 +2142,6 @@ class SpawnProcess(SubProcess):
if isinstance(retval, int):
# spawn failed
- os.close(master_fd)
for f in files.values():
f.close()
self.returncode = retval