- || (from_in_fd = fd_safer (pipe_fd[0])) < 0
- || (from_out_fd = fd_safer (pipe_fd[1])) < 0)
- error (EXIT_FAILURE, errno, "pipe");
-
- /* Save the local variables in the parent now, in case vfork
- clobbers them. */
- fd[0] = to_out_fd;
- fd[1] = from_in_fd;
- pipe_fd[0] = to_in_fd;
- pipe_fd[1] = from_out_fd;
+ || (fd[1] = fd_safer (pipe_fd[0])) < 0
+ || (child_fd[1] = fd_safer (pipe_fd[1])) < 0)
+ error (EXIT_FAILURE, errno,
+ "pipe");