From 55a9a2f01baed17eb4b6eff88b0f8a1343a847d4 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 16 May 2020 17:12:56 +0200 Subject: openpgp: Explicitly kill gpg-agent when exiting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/718066 Signed-off-by: Michał Górny --- gemato/openpgp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gemato/openpgp.py b/gemato/openpgp.py index 36c0be3..010c750 100644 --- a/gemato/openpgp.py +++ b/gemato/openpgp.py @@ -235,6 +235,7 @@ debug-level guru def close(self): if self._home is not None: if not self.debug: + self._spawn_gpg(['gpgconf', '--kill']) # we need to loop due to ENOTEMPTY potential while os.path.isdir(self._home): shutil.rmtree(self._home, -- cgit v1.2.3