def close(self):
        if not self.is_open():
            return
        self.proc.stdin.write(BYTES_LITERAL("foo\n\n\n"))
        self.proc.stdin.close()
        self.proc.stdout.close()
        self.proc.stderr.close()
        try:
            self.proc.kill()
        except AttributeError:
            if signal:
                os.kill(self.proc.pid, signal.SIGTERM)
        self.proc.wait()
        self.proc = None
Read a line from the PTY at `fd`, or nothing if no data to read.
dataset/ETHPy150Open sccn/SNAP/src/rpyc/utils/ssh.py/SshTunnel.close--crossover with--dataset/ETHPy150Open d11wtq/dockerpty/tests/util.py/readline