From d16e2baf35963f6ed2ccd23a3aa3df69cd65dd84 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 19 Oct 2016 01:01:38 +0000 Subject: Add child_spawn2 --- src/include/skalibs/djbunix.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include') diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h index 0a1a2c4..354ca57 100644 --- a/src/include/skalibs/djbunix.h +++ b/src/include/skalibs/djbunix.h @@ -157,6 +157,15 @@ extern pid_t child_spawn1_pipe (char const *, char const *const *, char const *c extern pid_t child_spawn1_socket (char const *, char const *const *, char const *const *, int *) ; + /* + Spawn function with 2 communicating pipes. The int * points to 2 fds. + Input: fds[0] and fds[1] are the fds to move the pipes to in the child. + Output: fds[0] and fds[1] contain the pipes to the child. + */ + +extern pid_t child_spawn2 (char const *, char const *const *, char const *const *, int *) ; + + /* Unified function to fork a child with communication canals. * uses posix_spawn() if available, else uses fork+exec -- cgit v1.2.3