diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-10-19 01:01:38 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-10-19 01:01:38 +0000 |
commit | d16e2baf35963f6ed2ccd23a3aa3df69cd65dd84 (patch) | |
tree | 016d26841106256b40373e1467c7de2f004caf50 /src/include | |
parent | 08997ab1211eb3ee52feeb7bd9062da2f168f834 (diff) | |
download | skalibs-d16e2baf35963f6ed2ccd23a3aa3df69cd65dd84.tar.xz |
Add child_spawn2
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/djbunix.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -158,6 +158,15 @@ extern pid_t child_spawn1_socket (char const *, char const *const *, char const /* + 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 * requests n (the last arg) communication fds between parent and child |