In #282 we introduced some rather subtle dup logic to ensure that the fork pipe fds don't shadow stdin/stdout/stderr. However, it turns out that POSIX provides a much simpler means of doing this: fcntl(fd, O_DUPFD) (manpage). We should rather use this.
In #282 we introduced some rather subtle
dup
logic to ensure that the fork pipe fds don't shadow stdin/stdout/stderr. However, it turns out that POSIX provides a much simpler means of doing this:fcntl(fd, O_DUPFD)
(manpage). We should rather use this.