Don't assume STDIN_FD and STDOUT_FD are interchangeable.