[PATCH] gpg-agent: Enable socket activation

Shea Levy shea at shealevy.com
Wed Nov 19 00:05:46 CET 2014


Hi all,

I’ve attached a patch to enable the '--agent-fd' (and, similarly, '--ssh-agent-fd') flags to be used to specify a file descriptor to use as the agent listening socket. This allows service managers like launchd or systemd to enable on-demand activation of gpg-agent without potential races at initialization or termination time.

I’ve also attached an example launchd configuration and program that can be used with this patch to set up on-demand activation on OS X.

You can also pull the change directly from the 'socket-activate’ branch of git://github.com/shlevy/gnupg.git

Cheers,
Shea Levy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: socket-activate.patch
Type: application/octet-stream
Size: 5499 bytes
Desc: not available
URL: </pipermail/attachments/20141118/51d29ea4/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: agent.c
Type: application/octet-stream
Size: 678 bytes
Desc: not available
URL: </pipermail/attachments/20141118/51d29ea4/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: com.shealevy.gpg-agent.plist
Type: application/octet-stream
Size: 653 bytes
Desc: not available
URL: </pipermail/attachments/20141118/51d29ea4/attachment-0005.obj>


More information about the Gnupg-devel mailing list