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:
parent
6ed2857d54
commit
11387b24a5
@ -484,6 +484,13 @@ gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
|
|||||||
log_debug ("unexpected timeout while polling '%s'\n", pgmname);
|
log_debug ("unexpected timeout while polling '%s'\n", pgmname);
|
||||||
break;
|
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)
|
if (fds[0].got_write)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user