diff options
Diffstat (limited to 'qarsh.c')
-rw-r--r-- | qarsh.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -288,6 +288,8 @@ run_remote_cmd(char *cmdline) if (nbytes == z_out) { z_out = 0; if (eof_out) close(fileno(stdout)); + } else if (nbytes == -1) { + fprintf(stderr, "Error writing to stdout: %s\n", strerror(errno)); } else { memmove(b_out, b_out+nbytes, z_out - nbytes); z_out -= nbytes; |