aboutsummaryrefslogtreecommitdiffstats
path: root/common/exectool.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/exectool.c')
-rw-r--r--common/exectool.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/exectool.c b/common/exectool.c
index de460084f..900020ecc 100644
--- a/common/exectool.c
+++ b/common/exectool.c
@@ -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)
{