Make waiting for a process close the write-end of its stdin pipe.