-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi,
I wrote a small utility that will kill any running scdaemon before starting a new one. This can be used to replace "/usr/lib/gnupg2/scdaemon" in /etc/poldi/poldi.conf. - ---- #include <unistd.h> char *scdaemon="/usr/lib/gnupg2/scdaemon"; main(int argc, char **argv) { system("/usr/bin/killall -9 scdaemon"); argv[0]=scdaemon; execvp(scdaemon, argv); } - ---- It has no lasting effect on the functioning of gnupg, as gpg-agent will simply start a new scdaemon on finding the old one dead. This functionality could easily be added to poldi natively. Ideally, we would instead try to detect and connect to the running scdaemon on its unix socket (this can be found via netstat). I tried patching something together using socat but had no success. - -- Andrew Gallagher Senior Systems Engineer, Ward Solutions Ltd. 2054 Castle Drive, Citywest, Dublin 24 +353 87 1200174 -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJWnimxAAoJENW/k7AUpJcA5R8H+gLrwIv3ic817lnYugGlM7po CitIkkJyIAcWu0bRBnxpX05mJmY7CdUW4AJuJFONnA7ffNGFs753vZTphoSKoFuj XV5uQxrPgKI+wrGLqnMyDln9b02vMlmAhetmcAAe/e7vr+/CVqnD9s/+KEakNg7w xKBAM1ZJs6x/HvyxB0dbF4zKdHSfKsRyXT0Jl8hu5fOJ6JhanvpQetim/2yRBu1H GK5N2Vqm5yzDso4k0dUXzMsPZM1xTPVPHcU7cvJEDDTAVT5WD7HvQBGxzn+a5ojs mh99O6sPISyRmUaj+IOO3WqmAame8q4EUo3DEuVfqptLljPiB9qSzn86FAG2jAM= =RU8T -----END PGP SIGNATURE----- The information in this email and any attachments contain confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail, the attachments or any part thereof. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Unless expressly stated, this email is not intended to create any contractual relationship. If this email is not sent in the course of the senders employment or fulfilment of his/her duties to Ward Solutions, Ward Solutions accepts no liability whatsoever for the content of this message or any attachment(s). Ward Solutions Ltd. Registered in Republic of Ireland at 2054 Castle Drive, CityWest Business Campus, Dublin 24 Reg. No. 316165.