From 67a454f72e4194dae9764fcc85aa426db0fa9334 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
+ pid_t child_spawn2 (char const *file, char const *const *argv, char const *const *envp, int *fds)
+Like child_spawn0(), except that two pipes are created between the
+parent and the child. fds must point to an array of 2 ints: this
+array is read as well as written by child_spawn2(). On function
+call, the numbers in fds must describe what fds should be used
+in the child to contain the communication pipes (for instance, if the child
+will read from its parent on stdin and writes to its parent on stdout, fds
+must contain 0 and 1). On function return, fds contains the
+descriptors for the pipes that read from / write to the child.
+
pid_t child_spawn (char const *file, char const *const *argv, char const *const *envp, int *fds, unsigned int nfds)
More generic spawning function. fds must point to an array of at least nfds ints;
--
cgit v1.2.3