[Pkg-gnupg-commit] [libgpg-error] 17/29: w32: Fix gpgrt_poll for Windows.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sun Mar 5 00:41:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository libgpg-error.

commit 07d5bd918d2185f79c7d61d56ee7f3090b6f5dcd
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Feb 28 10:00:25 2017 +0100

    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 <wk at gnupg.org>
---
 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git



More information about the Pkg-gnupg-commit mailing list