From ab87480fc201ad687153429aee043ab454fed0a3 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 23 Aug 2019 10:17:48 +0900 Subject: estream: Fix gpgrt_poll to prevent waiting indefinitely for others. * src/estream.c (_gpgrt_poll): Go to leave, when something is ready. Signed-off-by: NIIBE Yutaka --- src/estream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/estream.c b/src/estream.c index 4ec5695..0d8f522 100644 --- a/src/estream.c +++ b/src/estream.c @@ -4838,6 +4838,9 @@ _gpgrt_poll (gpgrt_poll_t *fds, unsigned int nfds, int timeout) /* FIXME */ } + if (count) + goto leave; + /* Now do the real select. */ #ifdef HAVE_W32_SYSTEM -- cgit v1.2.3