39cf4fa
Fixing the wrong stdin pipe close. _end_process() calls shutdown_write() method of SSHCallWrapper which closes the wrong stdin pipe if we're using Python 3 as wrap_file() closure returns a new object (io.TextIOWrapper).