diff options
author | Tharre <tharre3@gmail.com> | 2018-02-09 15:19:52 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2018-02-09 15:19:52 +0100 |
commit | 5be21f764c405d308309039b29e48e189abaac52 (patch) | |
tree | dfca79e0d4c4ffa571ecae89c26d6df9061b79e5 | |
parent | edab612bd41ab2fdfb123cb8030b77c372a81dc6 (diff) | |
download | dotfiles-5be21f764c405d308309039b29e48e189abaac52.tar.gz dotfiles-5be21f764c405d308309039b29e48e189abaac52.tar.xz dotfiles-5be21f764c405d308309039b29e48e189abaac52.zip |
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).
-rwxr-xr-x | .req_pwd.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |