terminal: drain PTY when client terminates

This is done by:

* Not limiting the number of times we try to read from the PTY when
  we’ve have POLLHUP
* Not requiring the entire the previous read to have filled our
  buffer.
* Not erroring out on EIO.
This commit is contained in:
Daniel Eklöf 2021-04-07 19:09:31 +02:00
parent 275b62371f
commit f42e42246f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 10 additions and 4 deletions

View file

@ -42,6 +42,7 @@
* OSC-4/104 out-of-bounds accesses to the color table. This was the
reason pywal turned foot windows transparent
(https://codeberg.org/dnkl/foot/issues/434).
* PTY not being drained when the client application terminates.
### Security