diff options
author | NIIBE Yutaka <[email protected]> | 2024-07-04 01:55:21 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2024-07-04 01:55:21 +0000 |
commit | e10b22f8e79ea73ff7afc7f35465012d1812d214 (patch) | |
tree | ee0787513b3338edebcb6878b17eee626da380dc /common/exechelp.h | |
parent | Use gnupg_fd_t for create_pipe_and_estream. (diff) | |
download | gnupg-e10b22f8e79ea73ff7afc7f35465012d1812d214.tar.gz gnupg-e10b22f8e79ea73ff7afc7f35465012d1812d214.zip |
Fix gnupg_create_{inbound,outbound}_pipe API.gniibe/spawn
So that non-useful value for other end of pipe won't
be shown to its users.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/exechelp.h')
-rw-r--r-- | common/exechelp.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/exechelp.h b/common/exechelp.h index 9f9b70514..d2aac4b39 100644 --- a/common/exechelp.h +++ b/common/exechelp.h @@ -54,15 +54,15 @@ int *get_all_open_fds (void); /* Portable function to create a pipe. Under Windows the write end is - inheritable. If R_FP is not NULL, an estream is created for the - write end and stored at R_FP. */ -gpg_error_t gnupg_create_inbound_pipe (gnupg_fd_t filedes[2], + inheritable. Pipe is created and the read end is stored at R_FD. + An estream is created for the write end and stored at R_FP. */ +gpg_error_t gnupg_create_inbound_pipe (gnupg_fd_t *r_fd, estream_t *r_fp, int nonblock); /* Portable function to create a pipe. Under Windows the read end is - inheritable. If R_FP is not NULL, an estream is created for the - write end and stored at R_FP. */ -gpg_error_t gnupg_create_outbound_pipe (gnupg_fd_t filedes[2], + inheritable. Pipe is created and the write end is stored at R_FD. + An estream is created for the write end and stored at R_FP. */ +gpg_error_t 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 |