From 8d548a4be6fd0584f84d107fd83fb18c28ab578f Mon Sep 17 00:00:00 2001
From: Laurent Bercot
- pid_t child_spawn1 (char const *file, char const *const *argv, char const *const *envp, int *fd, int w)
+ pid_t child_spawn1_pipe (char const *file, char const *const *argv, char const *const *envp, int *fd, int w)
Like child_spawn0(), except that a pipe is created between the child's
stdin (if w is 0) or stdout (if w is nonzero) and the parent.
The parent's end of the pipe will be stored in *fd.
+ pid_t child_spawn1_socket (char const *file, char const *const *argv, char const *const *envp, int *fd)
+Like child_spawn0, except that a socket is created between the parent
+and the child. Both the child's stdin and stdout point to the socket; the parent has
+its end of the socket available in *fd.
+
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;
@@ -472,10 +479,8 @@ file descriptors reading from or writing to the child will be stored there. The