diff options
author | Werner Koch <[email protected]> | 2018-11-01 08:55:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-11-01 08:55:24 +0000 |
commit | 63ba09b541dabbe838253926896e721cb9be564a (patch) | |
tree | 26f2824b31ab5aafd1a351a4224b38161efa7ce7 /src/w32-io.c | |
parent | w32: Merge all the object tables of w32-io into one. (diff) | |
download | gpgme-63ba09b541dabbe838253926896e721cb9be564a.tar.gz gpgme-63ba09b541dabbe838253926896e721cb9be564a.zip |
w32: Use CancelSynchronousIo in destroy_reader.
* src/w32-util.c (_gpgme_w32_cancel_synchronous_io): New.
* src/w32-io.c (destroy_reader): Use it here.
--
This has not been tested but should on Vista and later help to fix a
possible hang.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/w32-io.c')
-rw-r--r-- | src/w32-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32-io.c b/src/w32-io.c index ad1e330c..436bb7b2 100644 --- a/src/w32-io.c +++ b/src/w32-io.c @@ -485,7 +485,7 @@ destroy_reader (struct reader_context_s *ctx) dlopen that syscall. */ if (ctx->file_hd != INVALID_HANDLE_VALUE) { - /* Fixme: Call CancelSynchronousIo (handle_of_thread). */ + _gpgme_w32_cancel_synchronous_io (ctx->thread_hd); } else if (ctx->file_sock != INVALID_SOCKET) { |