--- scriptlets.d/ssh_and_gpg_agents.orig 2009-04-01 03:09:28.000000000 +0100 +++ scriptlets.d/ssh_and_gpg_agents 2009-05-06 16:04:10.000000000 +0100 @@ -68,6 +68,7 @@ # ssh-agents are not associated to a tty for clearagentspid in $(ps t - | gawk '/gpg-agent --daemon/ {print $1}') ; do # gpg-agents forget the passphrases when a SIGHUP is sent to them + ps -p ${clearagentspid} >/dev/null || continue vecho 2 "kill -SIGHUP ${clearagentspid}" kill -SIGHUP ${clearagentspid} done