vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit d2725b002d869c0c9e57deb992c74017bfcce370
parent 066459089313ed74475f352bfd80e87e1d739d2c
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 31 May 2017 21:53:48 +0200

vis: fix compiler warning concerning write(2) return value

Diffstat:
Mvis.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vis.c b/vis.c @@ -1752,7 +1752,7 @@ int vis_pipe(Vis *vis, File *file, Filerange *range, const char *argv[], * state change. By writing a dummy byte ourself we * ensure that the complete output is visible. */ - write(STDOUT_FILENO, " ", 1); + while(write(STDOUT_FILENO, " ", 1) == -1 && errno == EINTR); } else if (read_stdout) { dup2(pout[1], STDOUT_FILENO); } else {