39cf4fa Fixing the wrong stdin pipe close.

Authored and Committed by Aleksei Slaikovskii 6 years ago
    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).