projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
445daff
)
Remove redundant os.close(master_fd) call inside SpawnProcess._start() since
author
Zac Medico
<zmedico@gentoo.org>
Thu, 9 Oct 2008 20:03:37 +0000
(20:03 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 9 Oct 2008 20:03:37 +0000
(20:03 -0000)
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
pym/_emerge/__init__.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/__init__.py
b/pym/_emerge/__init__.py
index 65093ddd8c0f1019e71758c41f02af24ffa3520c..7b4067a88c7ed8e2aeeb2185a7fb56ac99a062c6 100644
(file)
--- 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