aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index 376c0e4..dc2c984 100644
--- 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 {