summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-05-16 17:12:56 +0200
committerMichał Górny <mgorny@gentoo.org>2020-05-16 17:12:56 +0200
commit55a9a2f01baed17eb4b6eff88b0f8a1343a847d4 (patch)
tree9a988d2992db533d0365f61f4721aa109e7fa534
parent20301dd3d55c81e3655c367b4d74382cec499717 (diff)
downloadgemato-55a9a2f01baed17eb4b6eff88b0f8a1343a847d4.tar.gz
openpgp: Explicitly kill gpg-agent when exiting
Bug: https://bugs.gentoo.org/718066 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--gemato/openpgp.py1
1 files changed, 1 insertions, 0 deletions
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,