git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit e9289a0b4284e03e782e7b106dd9438ef345f863
parent 2bbcc3ca9ebc2c3daec3804e36ce2e77c289de45
Author: Rob King <jking@deadpixi.com>
Date:   Fri, 12 Jul 2019 11:40:53 -0500

Fix handling of different OS's reporting of EOF with O_NONBLOCK set.

Diffstat:
Mmtm.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mtm.c b/mtm.c @@ -713,7 +713,7 @@ getinput(NODE *n, fd_set *f) /* Recursively check all ptty's for input. */ ssize_t r = read(n->pt, iobuf, BUFSIZ); if (r > 0) vtwrite(&n->vp, iobuf, r); - if (r < 0 && errno != EINTR && errno != EWOULDBLOCK) + if (r <= 0 && errno != EINTR && errno != EWOULDBLOCK) return deletenode(n), false; }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.