MergeProcess: close elog_writer_fd leak
authorZac Medico <zmedico@gentoo.org>
Fri, 25 Mar 2011 08:11:45 +0000 (01:11 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 25 Mar 2011 08:11:45 +0000 (01:11 -0700)
pym/portage/dbapi/_MergeProcess.py

index a8c3c9dc7a7993e2e89499a6d24d91c8b4e392a3..8f61a2fde0a6d7bc0604efee4953e203462c5f54 100644 (file)
@@ -64,6 +64,7 @@ class MergeProcess(SpawnProcess):
 
                pid = os.fork()
                if pid != 0:
+                       os.close(elog_writer_fd)
                        self._elog_reader_fd = elog_reader_fd
                        self._buf = ""
                        portage.process.spawned_pids.append(pid)