diff options
author | Werner Koch <[email protected]> | 2017-02-28 09:00:25 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-02-28 09:00:25 +0000 |
commit | 07d5bd918d2185f79c7d61d56ee7f3090b6f5dcd (patch) | |
tree | 6ce97e1cf10c4c5a1194e3a6c56e8690df2e5442 | |
parent | Use the new tracing ramework for estream. (diff) | |
download | libgpg-error-07d5bd918d2185f79c7d61d56ee7f3090b6f5dcd.tar.gz libgpg-error-07d5bd918d2185f79c7d61d56ee7f3090b6f5dcd.zip |
w32: Fix gpgrt_poll for Windows.
* src/estream.c (_gpgrt_poll) [W32]: Do not call the syscall clamp.
--
The system call clamp may only be used directloy around system calls.
We don't need them here because we use independent threads to
implement non-blocking behaviour. In fact the clamp may lead to a
deadlock.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | src/estream.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/estream.c b/src/estream.c index c6c9a52..ee3a7df 100644 --- a/src/estream.c +++ b/src/estream.c @@ -4824,14 +4824,8 @@ _gpgrt_poll (gpgrt_poll_t *fds, unsigned int nfds, int timeout) /* Now do the real select. */ #ifdef HAVE_W32_SYSTEM - if (pre_syscall_func) - pre_syscall_func (); - count = _gpgrt_w32_poll (fds, nfds, timeout); - if (post_syscall_func) - post_syscall_func (); - #else /*!HAVE_W32_SYSTEM*/ any_readfd = any_writefd = any_exceptfd = 0; |