Great, applied, thanks. Yes that will probably work for 2.5.
On Wed, Aug 23, 2017 at 12:27:32PM +0200, Thomas Sattler wrote:
> That second patch seems to completely solve the observed
> issue. Is the following a correct backport for tmux-2.5?
> (As far as I can see it does seem to work.)
>
>
> diff -Nur tmux-2.5-vanilla/tty.c tmux-2.5/tty.c
> --- tmux-2.5-vanilla/tty.c 2017-05-29 09:12:06.000000000 +0200
> +++ tmux-2.5/tty.c 2017-08-23 12:06:11.000000000 +0200
> @@ -167,8 +167,11 @@
> int nread;
>
> nread = evbuffer_read(tty->in, tty->fd, -1);
> - if (nread == -1)
> + if (nread == 0 || nread == -1) {
> + event_del(&tty->event_in);
> + server_client_lost(tty->client);
> return;
> + }
> log_debug("%s: read %d bytes (already %zu)", c->name, nread, size);
>
> while (tty_keys_next(tty))
>
>
> Thanks a lot!
> Thomas
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send an email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.