aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-09-02 12:49:24 +0000
committerWerner Koch <[email protected]>2020-09-02 12:49:24 +0000
commit2042f5a4641f4e43137b7683077b4d733d216417 (patch)
treed373159c268ce4370f8a1825c87f7ae39d4798c8 /common/exechelp.h
parentUse only one copy of the warn_server_mismatch function. (diff)
downloadgnupg-2042f5a4641f4e43137b7683077b4d733d216417.tar.gz
gnupg-2042f5a4641f4e43137b7683077b4d733d216417.zip
common: New helper function gnupg_close_pipe.
* common/exechelp-posix.c (gnupg_close_pipe): New. * common/exechelp-w32.c (gnupg_close_pipe): New. -- This function is mainly for documentation purposes and should be used along with gnupg_create_pipe. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/exechelp.h')
-rw-r--r--common/exechelp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/exechelp.h b/common/exechelp.h
index 9e1f56f70..d50e378e7 100644
--- a/common/exechelp.h
+++ b/common/exechelp.h
@@ -69,6 +69,9 @@ gpg_error_t gnupg_create_outbound_pipe (int filedes[2],
inheritable. */
gpg_error_t gnupg_create_pipe (int filedes[2]);
+/* Close the end of a pipe. */
+void gnupg_close_pipe (int fd);
+
#define GNUPG_SPAWN_NONBLOCK 16
#define GNUPG_SPAWN_RUN_ASFW 64