git.y1.nz

mtm

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

commit c30019515fdfaf92caf02ca4db303d9ddc122d56
parent 6395a57c80f7009eecfca27bba16ab4553572ceb
Author: Rob King <jking@deadpixi.com>
Date:   Sun, 19 Feb 2017 00:54:18 -0600

Don't die on write if a client dies unexpectedly.

Diffstat:
Mmtm.c3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -132,8 +132,7 @@ safewrite(int fd, const char *b, size_t n) size_t w = 0; while (w < n){ ssize_t s = write(fd, b + w, n - w); - if (s < 0 && errno != EINTR) - quit(EXIT_FAILURE, strerror(errno)); + if (s < 0 && errno != EINTR) return; w += (size_t)s; } }

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