aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-10-27 01:50:42 +0000
committerNIIBE Yutaka <[email protected]>2022-10-27 01:50:42 +0000
commitd3baa17065cb320c904731e0b800224aa9ac9843 (patch)
tree17dd133ba707be8978b0ae5e08db63ffe31e49b4
parentgpgrt_spawn_process, gpgrt_spawn_process_fd: Change the API. (diff)
downloadlibgpg-error-d3baa17065cb320c904731e0b800224aa9ac9843.tar.gz
libgpg-error-d3baa17065cb320c904731e0b800224aa9ac9843.zip
Fix the comment for _gpgrt_spawn_process_fd, it's a variant.
-- Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--src/gpgrt-int.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/gpgrt-int.h b/src/gpgrt-int.h
index 209e974..b95b44c 100644
--- a/src/gpgrt-int.h
+++ b/src/gpgrt-int.h
@@ -690,16 +690,15 @@ _gpgrt_spawn_process (const char *pgmname, const char *argv[],
pid_t *pid);
-/* Simplified version of gpgrt_spawn_process. This function forks and
- * then execs PGMNAME, while connecting INFD to stdin, OUTFD to stdout
- * and ERRFD to stderr (any of them may be -1 to connect them to
- * /dev/null). The arguments for the process are expected in the NULL
- * terminated array ARGV. The program name itself should not be
- * included there. Calling gpgrt_wait_process and
- * gpgrt_release_process is required. Returns 0 on success or an
- * error code.
- * If AFTER_FORK_CB is not NULL, the given function will be called
- * right after the fork, by child process.
+/* Variant of gpgrt_spawn_process. This function forks and then execs
+ * PGMNAME, while connecting INFD to stdin, OUTFD to stdout and ERRFD
+ * to stderr (any of them may be -1 to connect them to /dev/null).
+ * The arguments for the process are expected in the NULL terminated
+ * array ARGV. The program name itself should not be included there.
+ * Calling gpgrt_wait_process and gpgrt_release_process is required.
+ * Returns 0 on success or an error code. If AFTER_FORK_CB is not
+ * NULL, the given function will be called right after the fork, by
+ * child process.
*/
gpg_err_code_t _gpgrt_spawn_process_fd (const char *pgmname,
const char *argv[],