diff options
Diffstat (limited to 'qarsh.c')
-rw-r--r-- | qarsh.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -395,6 +395,12 @@ run_remote_cmd(char *cmdline) fprintf(stderr, "ERROR: Received data allow for fd %d\n", qp->qp_dallow.qp_remfd); } + } else if (qp->qp_type == QP_RETURNCODE) { /* qarshd hit an error while writing to stdin */ + fprintf(stderr, "Remote command hit I/O error: %s\n", qp->qp_returncode.qp_strerror); + close(fileno(stdin)); + allowed_in = -1; + } else { + fprintf(stderr, "Unexpected packet type %s\n", qp_packet_type(qp->qp_type)); } qpfree(qp); nset--; |