aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/exechelp-posix.c')
-rw-r--r--common/exechelp-posix.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/exechelp-posix.c b/common/exechelp-posix.c
index 2c7cb2adf..a9d91d9e7 100644
--- a/common/exechelp-posix.c
+++ b/common/exechelp-posix.c
@@ -348,11 +348,14 @@ gnupg_create_outbound_pipe (gnupg_fd_t *r_fd, estream_t *r_fp, int nonblock)
}
-/* Portable function to create a pipe. Under Windows both ends are
- inheritable. */
+/* Portable function to create a pipe. FLAGS=GNUPG_PIPE_INBOUND for
+ ihneritable write-end for Windows, GNUPG_PIPE_OUTBOUND for
+ inheritable read-end for Windows, GNUPG_PIPE_BOTH to specify
+ both ends may be inheritable. */
gpg_error_t
-gnupg_create_pipe (int filedes[2])
+gnupg_create_pipe (int filedes[2], int flags)
{
+ (void)flags;
return do_create_pipe (filedes);
}