aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-28 23:32:21 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-28 23:47:55 -0800
commit7e7e22d8129b505787c1006501659262081c4aec (patch)
tree5bb9a8d6a5059641da0e3403181b98a16a60fb04 /lib
parentAsyncFunction: eliminate _pipe_logger_exit with _async_waitpid (diff)
downloadportage-7e7e22d8129b505787c1006501659262081c4aec.tar.gz
portage-7e7e22d8129b505787c1006501659262081c4aec.tar.bz2
portage-7e7e22d8129b505787c1006501659262081c4aec.zip
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@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/portage/util/_async/FileDigester.py5
1 files 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())