aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keybox-blob.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-06-07 06:26:34 +0000
committerNIIBE Yutaka <[email protected]>2023-06-07 06:26:34 +0000
commitf5656ff363a00c7649224d827b92c3e6031b6b77 (patch)
tree0106ad642b8f1f1839987de17952a983b1ebabce /kbx/keybox-blob.c
parentcommon: Add test case for IPC with spawned process. (diff)
downloadgnupg-f5656ff363a00c7649224d827b92c3e6031b6b77.tar.gz
gnupg-f5656ff363a00c7649224d827b92c3e6031b6b77.zip
kbx: Fix datastream_thread and use the data pipe.
* g10/call-keyboxd.c (gpg_keyboxd_deinit_session_data): Release the assuan connection before kbx_client_data_release. (open_context): Enable use of the data pipe. * sm/keydb.c (gpgsm_keydb_deinit_session_data): Release the assuan connection before kbx_client_data_release. (open_context): Enable use of the data pipe. * kbx/kbx-client-util.c (struct kbx_client_data_s): Add THD field. (prepare_data_pipe): Close the pipe output end as it's been sent already. Remember the KCD->THD, so that it can be joined later. (datastream_thread): Finish when reading no data from the pipe. (kbx_client_data_release): Join the thread. Then, we can safely call es_fclose on the FP. -- GnuPG-bug-id: 6512 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'kbx/keybox-blob.c')
0 files changed, 0 insertions, 0 deletions