Delete input event when evbuffer_read() fails to avoid just spinning
authornicm <nicm@openbsd.org>
Tue, 6 Jun 2017 14:53:28 +0000 (14:53 +0000)
committernicm <nicm@openbsd.org>
Tue, 6 Jun 2017 14:53:28 +0000 (14:53 +0000)
commit7f59910c2db7a0ec02562ac6cba593ee35f3f32b
tree1c99183eba0dab08d76529611c3cfe309601c1fe
parent50340981cf223a6cf5e4f70e75e7f41ace4a3aaf
Delete input event when evbuffer_read() fails to avoid just spinning
around a dead file descriptor. Seems to fix a problem reported by Greg
Hurrell in GitHub issue 941.
usr.bin/tmux/tty.c