Lines 68-73
Link Here
|
68 |
# ssh-agents are not associated to a tty |
68 |
# ssh-agents are not associated to a tty |
69 |
for clearagentspid in $(ps t - | gawk '/gpg-agent --daemon/ {print $1}') ; do |
69 |
for clearagentspid in $(ps t - | gawk '/gpg-agent --daemon/ {print $1}') ; do |
70 |
# gpg-agents forget the passphrases when a SIGHUP is sent to them |
70 |
# gpg-agents forget the passphrases when a SIGHUP is sent to them |
|
|
71 |
ps -p ${clearagentspid} >/dev/null || continue |
71 |
vecho 2 "kill -SIGHUP ${clearagentspid}" |
72 |
vecho 2 "kill -SIGHUP ${clearagentspid}" |
72 |
kill -SIGHUP ${clearagentspid} |
73 |
kill -SIGHUP ${clearagentspid} |
73 |
done |
74 |
done |