From 981f27f79e607877e7b8e47a904e3972d0e8336e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 25 Mar 2011 01:11:45 -0700 Subject: [PATCH] MergeProcess: close elog_writer_fd leak --- pym/portage/dbapi/_MergeProcess.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.26.2