Fix garbage removal pafter SSH failure not working on macOS when run more than once
This commit is contained in:
parent
e8437fd435
commit
6057c57ea4
@ -516,7 +516,6 @@ def drain_potential_tty_garbage(p: 'subprocess.Popen[bytes]', data_request: str)
|
|||||||
# discard queued input data on tty in case data transmission was
|
# discard queued input data on tty in case data transmission was
|
||||||
# interrupted due to SSH failure, avoids spewing garbage to
|
# interrupted due to SSH failure, avoids spewing garbage to
|
||||||
# screen
|
# screen
|
||||||
termios.tcflush(tty.fileno(), termios.TCIFLUSH)
|
|
||||||
data = b''
|
data = b''
|
||||||
give_up_at = time.monotonic() + 1
|
give_up_at = time.monotonic() + 1
|
||||||
tty_fd = tty.fileno()
|
tty_fd = tty.fileno()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user