=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.289 retrieving revision 1.290 diff -c -r1.289 -r1.290 *** src/usr.bin/tmux/tty.c 2017/06/04 08:02:20 1.289 --- src/usr.bin/tmux/tty.c 2017/06/06 14:53:28 1.290 *************** *** 1,4 **** ! /* $OpenBSD: tty.c,v 1.289 2017/06/04 08:02:20 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: tty.c,v 1.290 2017/06/06 14:53:28 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 159,166 **** int nread; nread = evbuffer_read(tty->in, tty->fd, -1); ! if (nread == -1) return; log_debug("%s: read %d bytes (already %zu)", c->name, nread, size); while (tty_keys_next(tty)) --- 159,168 ---- int nread; nread = evbuffer_read(tty->in, tty->fd, -1); ! if (nread == -1) { ! event_del(&tty->event_in); return; + } log_debug("%s: read %d bytes (already %zu)", c->name, nread, size); while (tty_keys_next(tty))