From 5be21f764c405d308309039b29e48e189abaac52 Mon Sep 17 00:00:00 2001 From: Tharre Date: Fri, 9 Feb 2018 15:19:52 +0100 Subject: Kill gpg-agent via gpg-connect-agent "KILLAGENT" This works better than reloadagent or `gpgconf --kill gpg-agent` and is thus a good replacement for killall(1). --- .req_pwd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.req_pwd.sh b/.req_pwd.sh index 78a98a1..3a6be86 100755 --- a/.req_pwd.sh +++ b/.req_pwd.sh @@ -5,7 +5,8 @@ pass "$1" && exit # maybe gpg-agent is acting up, retry after restarting it -killall gpg-agent >&2 +gpg-connect-agent "KILLAGENT" /bye >&2 >/dev/null +gpg-connect-agent /bye >&2 >/dev/null pass "$1" && exit # if pass fails, request password manually -- cgit v1.2.3-70-g09d2