Skip to content

Commit

Permalink
vis: fix compiler warning concerning write(2) return value
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed May 31, 2017
1 parent ce0cd05 commit 697966c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 697966c

Please sign in to comment.