From 07d5bd918d2185f79c7d61d56ee7f3090b6f5dcd Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 28 Feb 2017 10:00:25 +0100 Subject: 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 --- src/estream.c | 6 ------ 1 file changed, 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; -- cgit v1.2.3