diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2019-08-23 10:17:48 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-08-23 10:17:48 +0900 |
commit | ab87480fc201ad687153429aee043ab454fed0a3 (patch) | |
tree | caac6eedefc6eee636a41ec9613b3b571637d0e6 /src/estream.c | |
parent | fc1a7591bdcd64a3df1d2db29afca8e224f64c0a (diff) | |
download | libgpg-error-ab87480fc201ad687153429aee043ab454fed0a3.tar.gz |
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 <gniibe@fsij.org>
Diffstat (limited to 'src/estream.c')
-rw-r--r-- | src/estream.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |