Remove redundant os.close(master_fd) call inside SpawnProcess._start() since
authorZac Medico <zmedico@gentoo.org>
Thu, 9 Oct 2008 20:03:37 +0000 (20:03 -0000)
committerZac 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

index 65093ddd8c0f1019e71758c41f02af24ffa3520c..7b4067a88c7ed8e2aeeb2185a7fb56ac99a062c6 100644 (file)
@@ -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