mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
kbx: Fix a race condition which results no status report.
* kbx/keyboxd.h (kbxd_status_printf): New. * kbx/backend-support.c (be_return_pubkey): Use kbxd_status_printf. * kbx/kbxserver.c (kbxd_status_printf): New. * kbxd_start_command_handler (kbxd_start_command_handler): Don't use set_assuan_context_func, because the function pointer is shared by multiple threads. -- GnuPG-bug-id: 5948 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
35b1755070
commit
bd5dbdb813
3 changed files with 25 additions and 11 deletions
|
@ -171,6 +171,8 @@ void kbxd_sighup_action (void);
|
|||
|
||||
|
||||
/*-- kbxserver.c --*/
|
||||
gpg_error_t kbxd_status_printf (ctrl_t ctrl, const char *keyword,
|
||||
const char *format, ...);
|
||||
gpg_error_t kbxd_write_data_line (ctrl_t ctrl,
|
||||
const void *buffer_arg, size_t size);
|
||||
void kbxd_start_command_handler (ctrl_t, gnupg_fd_t, unsigned int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue