1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

tests:gpgscm: Fix process select loop.

* tests/gpgscm/ffi.c (do_process_spawn_io): Clear READ_FDSET in the
loop.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-10-03 11:44:11 +09:00
parent 78afc209cc
commit 4206d89003
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -1025,19 +1025,13 @@ do_process_spawn_io (scheme *sc, pointer args)
fd_set read_fdset; fd_set read_fdset;
ssize_t bytes_read; ssize_t bytes_read;
if (out_fd < 0)
goto errout;
if (err_fd < 0)
goto errout;
FD_ZERO (&read_fdset);
while (1) while (1)
{ {
int nfd; int nfd;
int ret; int ret;
FD_ZERO (&read_fdset);
if (out_fd >= 0) if (out_fd >= 0)
FD_SET (out_fd, &read_fdset); FD_SET (out_fd, &read_fdset);