Fix a hang in gpgme.
authorWerner Koch <wk@gnupg.org>
Wed, 8 May 2013 18:54:49 +0000 (20:54 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 8 May 2013 18:54:49 +0000 (20:54 +0200)
commit132aaebfb4c2bbec3bf7cbefb455f32ae1b84d0c
tree592475316f768a4b42f83656f93dbbf2850b4563
parent77cc89fb9f41433c2cd9eab6e2cdf4aa4154f461
Fix a hang in gpgme.

* patches/gpgme-1.4.1/01-improve-trace.patch: New.
* patches/gpgme-1.4.1/02-close-socket.patch:
* Makefile.am (EXTRA_DIST): Add patches.
--

When using a socket (e.g. polling scdaemon) the closing of the socket
often blocked waiting on termination of the reader thread.  At that
point the reader table lock is also held and thus no other reader
thread could be started.  See the comments in the code for out
solution.

Note that there is currently another hang in Kleopatra, the first time
it is started. I was able to workaround that by disabling the startup
selftests.
Makefile.am
patches/gpgme-1.4.1/01-improve-trace.patch [new file with mode: 0755]
patches/gpgme-1.4.1/02-close-socket.patch [new file with mode: 0755]