#748540 gnupg-agent: Many gpg-agent processes

#748540#5
Date:
2014-05-18 08:21:17 UTC
From:
To:
Dear Maintainer,

gnupg-agent was installed for dependencies.  I don't use it.
My computer is on 24x7.  I connect to it by SSH and by X.

After a few days on, I have many instances of gpg-agent.

$ ps -fu $(whoami)|grep -v grep|grep gpg-agent
benoit   25352     1  0 mai17 ?        00:00:01 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/benoit/.cache/gpg-agent-info
benoit   25411     1  0 mai17 ?        00:00:01 gpg-agent --daemon
benoit   25417     1  0 mai17 ?        00:00:01 gpg-agent --daemon
benoit   25439     1  0 mai17 ?        00:00:01 gpg-agent --daemon
benoit   26211     1  0 09:41 ?        00:00:00 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/benoit/.cache/gpg-agent-info
benoit   26255     1  0 09:41 ?        00:00:00 gpg-agent --daemon
benoit   26260     1  0 09:41 ?        00:00:00 gpg-agent --daemon
benoit   26280     1  0 09:41 ?        00:00:00 gpg-agent --daemon
benoit   31530     1  0 mai16 ?        00:00:01 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/benoit/.cache/gpg-agent-info
benoit   31581     1  0 mai16 ?        00:00:02 gpg-agent --daemon
benoit   31583     1  0 mai16 ?        00:00:02 gpg-agent --daemon
benoit   31612     1  0 mai16 ?        00:00:02 gpg-agent --daemon

After some weeks, there are many instances.  I "killall" them.  If not, it
triggers my process monitoring.

I think I should not be so.  I don't know the best solution: gpg-agent should
die with its session, or there should be only one gpg-agent running.

Furthermore, I did not find a way to prevent gpg-agent to be started. My
~/.gnupg/gpg.conf has no "use-agent" line.

Thanks,
Benoit

#748540#10
Date:
2014-09-30 20:24:55 UTC
From:
To:
Hi,

my kids connect/disconnect all day long... and each opened session gets
a new gpg-agent instance, which apparently never shuts down.

It would be good if closing the session would also stop the attached
gpg-agent.

Thanks,

Snark on #debian-science