1 /* vi: set sw=4 ts=4: */
3 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 /* transformer(), more than meets the eye */
10 int open_transformer(int src_fd,
11 USE_DESKTOP(long long) int (*transformer)(int src_fd, int dst_fd))
20 bb_perror_msg_and_die("fork failed");
25 close(fd_pipe[0]); /* We don't wan't to read from the parent */
26 // FIXME: error check?
27 transformer(src_fd, fd_pipe[1]);
28 close(fd_pipe[1]); /* Send EOF */
35 close(fd_pipe[1]); /* Don't want to write to the child */