aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/estream.c2
-rw-r--r--src/w32-estream.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/estream.c b/src/estream.c
index dcabd92..a1cc62e 100644
--- a/src/estream.c
+++ b/src/estream.c
@@ -4802,7 +4802,9 @@ _gpgrt_poll (gpgrt_poll_t *fds, unsigned int nfds, int timeout)
/* Now do the real select. */
#ifdef HAVE_W32_SYSTEM
+ _gpgrt_pre_syscall ();
count = _gpgrt_w32_poll (fds, nfds, timeout);
+ _gpgrt_post_syscall ();
#else /*!HAVE_W32_SYSTEM*/
diff --git a/src/w32-estream.c b/src/w32-estream.c
index 2122c59..c1bf212 100644
--- a/src/w32-estream.c
+++ b/src/w32-estream.c
@@ -771,6 +771,8 @@ func_w32_pollable_write (void *cookie, const void *buffer, size_t count)
}
+/* This is the core of _gpgrt_poll. The caller needs to make sure that
+ * the syscall clamp has been engaged. */
int
_gpgrt_w32_poll (gpgrt_poll_t *fds, size_t nfds, int timeout)
{