commit:     7e7e22d8129b505787c1006501659262081c4aec
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 29 07:32:21 2020 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Feb 29 07:47:55 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=7e7e22d8

FileDigester: eliminate _pipe_logger_exit with _async_waitpid

Eliminate the _pipe_logger_exit method by overriding the
_async_waitpid method.

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/portage/util/_async/FileDigester.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/portage/util/_async/FileDigester.py 
b/lib/portage/util/_async/FileDigester.py
index 164dbdc23..d156a2015 100644
--- a/lib/portage/util/_async/FileDigester.py
+++ b/lib/portage/util/_async/FileDigester.py
@@ -57,10 +57,11 @@ class FileDigester(ForkProcess):
 
                self.digests = digests
 
-       def _pipe_logger_exit(self, pipe_logger):
+       def _async_waitpid(self):
                # Ignore this event, since we want to ensure that we
                # exit only after _digest_pipe_reader has reached EOF.
-               self._pipe_logger = None
+               if self._digest_pipe_reader is None:
+                       ForkProcess._async_waitpid(self)
 
        def _digest_pipe_reader_exit(self, pipe_reader):
                self._parse_digests(pipe_reader.getvalue())

Reply via email to