You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: