aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp-posix.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-28 13:01:57 +0000
committerJustus Winter <[email protected]>2016-06-28 13:01:57 +0000
commitd36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa (patch)
treedee26ac6014d52caba0a19615564357caa6bd6e6 /common/exechelp-posix.c
parentcommon: Fix copying data from the spawned child. (diff)
downloadgnupg-d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa.tar.gz
gnupg-d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa.zip
common: Close input stream.
* common/exechelp-posix.c (gnupg_spawn_process): Also close the input stream in the child. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'common/exechelp-posix.c')
-rw-r--r--common/exechelp-posix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c
index aefb6539c..b1b56f30c 100644
--- a/common/exechelp-posix.c
+++ b/common/exechelp-posix.c
@@ -523,6 +523,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
{
/* This is the child. */
gcry_control (GCRYCTL_TERM_SECMEM);
+ es_fclose (infp);
es_fclose (outfp);
es_fclose (errfp);
do_exec (pgmname, argv, inpipe[0], outpipe[1], errpipe[1],