From 86059f302922b92cadc9ed550491b0093ae7e1b5 Mon Sep 17 00:00:00 2001 From: Chris DiMartino Date: Mon, 26 Aug 2013 22:57:33 -0400 Subject: [PATCH] gpg-agent plugin service check changed - running on OsX 10.8 - When using gpg-agent plugin, found numerous instances of gpg-agent running on my system, growing linearly with time. Found existing check for running services is calling a deprecated command. --- plugins/gpg-agent/gpg-agent.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/gpg-agent/gpg-agent.plugin.zsh b/plugins/gpg-agent/gpg-agent.plugin.zsh index 4071334cb..89f718767 100644 --- a/plugins/gpg-agent/gpg-agent.plugin.zsh +++ b/plugins/gpg-agent/gpg-agent.plugin.zsh @@ -15,7 +15,7 @@ function start_agent_withssh { } # check if another agent is running -if ! gpg-connect-agent --quiet /bye > /dev/null 2> /dev/null; then +if ! gpg-agent -q > /dev/null 2> /dev/null; then # source settings of old agent, if applicable if [ -f "${GPG_ENV}" ]; then . ${GPG_ENV} > /dev/null