summaryrefslogtreecommitdiff
path: root/src/gpgrt-int.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-10-19 14:10:03 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2022-10-19 14:10:03 +0900
commit494886acb0bf3d536f4e620340e42c8ec8947742 (patch)
tree7896f5e3692b0b685c1acc77847b6eeed9502766 /src/gpgrt-int.h
parentbe4f289a5c09f43cb6b893bdc709a743a100be15 (diff)
downloadlibgpg-error-494886acb0bf3d536f4e620340e42c8ec8947742.tar.gz
spawn: Update changes from gnupg.
* src/gpg-error.h.in (GPGRT_SPAWN_KEEP_STDIN): New. (GPGRT_SPAWN_KEEP_STDOUT, GPGRT_SPAWN_KEEP_STDERR): New. * src/gpgrt-int.h: Add comment. * src/spawn-posix.c (do_exec): Add the argument FLAGS. (_gpgrt_spawn_process): Add FLAGS. (_gpgrt_spawn_process_fd): Follow the change. (_gpgrt_spawn_process_detached): Likewise. * src/spawn-w32.c (_gpgrt_spawn_process): Handle FLAGS. -- This commit imports GnuPG master commit of: 6d6438a361d25f3b269f702e017f5e39fd1f5c38 GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'src/gpgrt-int.h')
-rw-r--r--src/gpgrt-int.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpgrt-int.h b/src/gpgrt-int.h
index 8df7901..78d5938 100644
--- a/src/gpgrt-int.h
+++ b/src/gpgrt-int.h
@@ -675,6 +675,13 @@ gpg_err_code_t _gpgrt_make_pipe (int filedes[2], estream_t *r_fp,
* On W32 run AllowSetForegroundWindow for 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_err_code_t
_gpgrt_spawn_process (const char *pgmname, const char *argv[],