diff options
| author | Carson Fleming <cflems@cflems.net> | 2023-01-13 04:27:14 -0800 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2023-01-13 04:27:14 -0800 |
| commit | 2506007a6f25b24fa558282b48bcbcfc1c507954 (patch) | |
| tree | 2302c0476b74a36217a56d9112fa589e8d45d1d2 /pkd_stub.py | |
| parent | 352a8d94986f4387ecb1e81abfa0eb2f0c7bb543 (diff) | |
| download | pk-2506007a6f25b24fa558282b48bcbcfc1c507954.tar.gz | |
Update comment about NPTY bug
Diffstat (limited to 'pkd_stub.py')
| -rw-r--r-- | pkd_stub.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkd_stub.py b/pkd_stub.py index 1d33ddf..272f74a 100644 --- a/pkd_stub.py +++ b/pkd_stub.py @@ -359,11 +359,14 @@ def run_pty(screen, cn): try: data = screen.recv(1024) + # TODO: there is an artifact here due to use of blocking sockets: + # must hit 1 additional key before PTY mode will disable (because + # waiting for this recv.) This will be patched out when we switch + # to using selectors. if not alive: return False except: data = b'\xde\xad' - # TODO: problem is here: we wake up and suddenly not in pty mode if not data or data == b'\xde\xad': unpty(client) return False |
