From: Zac Medico Date: Fri, 25 Mar 2011 08:11:45 +0000 (-0700) Subject: MergeProcess: close elog_writer_fd leak X-Git-Tag: v2.2.0_alpha29~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=981f27f79e607877e7b8e47a904e3972d0e8336e;p=portage.git MergeProcess: close elog_writer_fd leak --- diff --git a/pym/portage/dbapi/_MergeProcess.py b/pym/portage/dbapi/_MergeProcess.py index a8c3c9dc7..8f61a2fde 100644 --- a/pym/portage/dbapi/_MergeProcess.py +++ b/pym/portage/dbapi/_MergeProcess.py @@ -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)