1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-29 19:48:43 +01:00

common: Add debug code to gnupg_exec_tool_stream

* common/exectool.c (gnupg_exec_tool_stream): Add diagnostic.
--

This should help if something is broken with poll.
This commit is contained in:
Werner Koch 2024-09-24 15:26:58 +02:00
parent 6ed2857d54
commit 11387b24a5
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -484,6 +484,13 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
log_debug ("unexpected timeout while polling '%s'\n", pgmname);
break;
}
for (i=0; i < 4; i++)
if (!fds[i].ignore && fds[i].got_nval)
{
/* This should never happen. */
log_debug ("closed fd passed to poll at idx %d - ignored\n", i);
fds[i].ignore = 1;
}
if (fds[0].got_write)
{