summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qarsh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qarsh.c b/qarsh.c
index 7c68880..fb09076 100644
--- a/qarsh.c
+++ b/qarsh.c
@@ -292,7 +292,7 @@ run_remote_cmd(char *cmdline)
&pselect_sigmask);
if (nset == 0) {
- if (cmd_finished) break;
+ if (cmd_finished && c_out == 0 && c_err == 0) break;
if (!hbeat(qarsh_hb)) {
/* Set our return packet as NULL so we exit