aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-06-16 16:08:32 +0000
committerWerner Koch <[email protected]>2015-06-16 16:11:32 +0000
commit685b782a18adb90bbf78956682e4e7f89fed678c (patch)
treed53c86663c8ca60f21de3c2c242230e8f7299405 /g10/misc.c
parentdirmngr: Add missing cast for use of pid_t in printf. (diff)
downloadgnupg-685b782a18adb90bbf78956682e4e7f89fed678c.tar.gz
gnupg-685b782a18adb90bbf78956682e4e7f89fed678c.zip
dirmngr: Cleanup zombies and fix hang on shutdown.
* dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Move nfds computation into the loop. Check the queue also on timeout. Close log_fd and reader context on EOF or error. -- The major bug here was that on an EOF of the log fd the log fd was not closed and thus the final queue item removal could not work. Checking the queue on a timeout is not really necessary but it help in case there is a race condition lingering. GnuPG-bug-id: 1838, 1978 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/misc.c')
0 files changed, 0 insertions, 0 deletions