aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/exechelp.h')
-rw-r--r--common/exechelp.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/common/exechelp.h b/common/exechelp.h
index 2b40ba098..1240fde33 100644
--- a/common/exechelp.h
+++ b/common/exechelp.h
@@ -71,7 +71,9 @@ gpg_error_t gnupg_create_pipe (int filedes[2]);
#define GNUPG_SPAWN_NONBLOCK 16
#define GNUPG_SPAWN_RUN_ASFW 64
#define GNUPG_SPAWN_DETACHED 128
-
+#define GNUPG_SPAWN_KEEP_STDIN 256
+#define GNUPG_SPAWN_KEEP_STDOUT 512
+#define GNUPG_SPAWN_KEEP_STDERR 1024
/* Fork and exec the program PGMNAME.
@@ -117,6 +119,12 @@ gpg_error_t gnupg_create_pipe (int filedes[2]);
the child. Note that due to unknown problems this actually
allows SetForegroundWindow for all children of this process.
+ GNUPG_SPAWN_KEEP_STDIN
+ GNUPG_SPAWN_KEEP_STDOUT
+ GNUPG_SPAWN_KEEP_STDERR
+ Do not assign /dev/null to a non-required standard file
+ descriptor.
+
*/
gpg_error_t
gnupg_spawn_process (const char *pgmname, const char *argv[],