running gpg-agent in foreground

Falko Strenzke falko.strenzke at mtg.de
Wed Jan 17 14:01:08 CET 2024


I would like to run my development version of GPG-agent under valgrind. 
As I understand it, for that purpose I have to run it in the foreground, 
i.e. in server mode. However, whenever I launch it as

./bin/gpg-agent --homedir <my-gpg-home-dir>  --log-file agent.log 
--server --debug-all

then, when I launch a private key operation via the gpg application, a 
new agent is started (in daemon mode) and used by gpg and I find no way 
to get the agent launched in server mode to ever process anything.

In contrast, if I start it with the same command line, except for using 
daemon mode, i.e.,

./bin/gpg-agent --homedir <my-gpg-home-dir>  --log-file agent.log 
--daemon --debug-all

then the gpg application always connects to it like expected.

Any ideas how I can launch the agent in the foreground so that the gpg 
application will connect to it?

- Falko

-- 

*MTG AG*
Dr. Falko Strenzke
Executive System Architect

Phone: +49 6151 8000 24
E-Mail: falko.strenzke at mtg.de
Web: mtg.de <https://www.mtg.de>

<https://www.linkedin.com/search/results/all/?fetchDeterministicClustersOnly=true&heroEntityKey=urn%3Ali%3Aorganization%3A13983133&keywords=mtg%20ag&origin=RICH_QUERY_SUGGESTION&position=0&searchId=d5bc71c3-97f7-4cae-83e7-e9e16d497dc2&sid=3S5&spellCorrectionEnabled=false>
Follow us
------------------------------------------------------------------------
<https://www.mtg.de/de/aktuelles/MTG-AG-erhaelt-Innovationspreis-des-Bundesverbands-IT-Sicherheit-e.V-00001.-TeleTrust/> 
<https://www.itsa365.de/de-de/companies/m/mtg-ag>

MTG AG - Dolivostr. 11 - 64293 Darmstadt, Germany
Commercial register: HRB 8901
Register Court: Amtsgericht Darmstadt
Management Board: Jürgen Ruf (CEO), Tamer Kemeröz
Chairman of the Supervisory Board: Dr. Thomas Milde

This email may contain confidential and/or privileged information. If 
you are not the correct recipient or have received this email in error,
please inform the sender immediately and delete this email.Unauthorised 
copying or distribution of this email is not permitted.

Data protection information: Privacy policy 
<https://www.mtg.de/en/privacy-policy>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20240117/6c7388a0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rzB7RpA8MsN8UOb4.png
Type: image/png
Size: 4018 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20240117/6c7388a0/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RpOgHYtyQ6wBvkib.png
Type: image/png
Size: 14587 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20240117/6c7388a0/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LU9Nb6NFHWo3V0MQ.png
Type: image/png
Size: 13185 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20240117/6c7388a0/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xD1AC7C9C72A60A61.asc
Type: application/pgp-keys
Size: 3139 bytes
Desc: OpenPGP public key
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20240117/6c7388a0/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20240117/6c7388a0/attachment-0001.sig>


More information about the Gnupg-users mailing list