diff options
Diffstat (limited to 'common/exechelp-posix.c')
-rw-r--r-- | common/exechelp-posix.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c index 425f2b4d5..2b724ce5f 100644 --- a/common/exechelp-posix.c +++ b/common/exechelp-posix.c @@ -416,6 +416,15 @@ gnupg_create_pipe (int filedes[2]) } +/* Close the end of a pipe. */ +void +gnupg_close_pipe (int fd) +{ + if (fd != -1) + close (fd); +} + + /* Fork and exec the PGMNAME, see exechelp.h for details. */ gpg_error_t gnupg_spawn_process (const char *pgmname, const char *argv[], |