summaryrefslogtreecommitdiffstats
path: root/src/util/child_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/child_common.h')
-rw-r--r--src/util/child_common.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/util/child_common.h b/src/util/child_common.h
index e659388ec..369de71a1 100644
--- a/src/util/child_common.h
+++ b/src/util/child_common.h
@@ -112,10 +112,18 @@ void child_sig_handler(struct tevent_context *ev,
int count, void *__siginfo, void *pvt);
/* Never returns EOK, ether returns an error, or doesn't return on success */
+errno_t exec_child_ex(TALLOC_CTX *mem_ctx,
+ int *pipefd_to_child, int *pipefd_from_child,
+ const char *binary, int debug_fd,
+ const char *extra_argv[],
+ int child_in_fd, int child_out_fd);
+
+/* Same as exec_child_ex() except child_in_fd is set to STDIN_FILENO and
+ * child_out_fd is set to STDOUT_FILENO and extra_argv is always NULL.
+ */
errno_t exec_child(TALLOC_CTX *mem_ctx,
int *pipefd_to_child, int *pipefd_from_child,
- const char *binary, int debug_fd,
- const char *extra_argv[]);
+ const char *binary, int debug_fd);
void child_cleanup(int readfd, int writefd);