Fixing child process input port in call-with-process-io.
Fixing close-output-port to close underlying file descriptors when appropriate.