summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2008-04-08 15:24:32 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:47 -0400
commit88e19aecd9900ea4e361058d7779e97427f8e9fb (patch)
treea63cdb161efd53e7250602bb4181a79845a5c04c
parent2a5d1ac68e3c28951b9b7df25aa41dc959f74bf2 (diff)
downloadqarsh-88e19aecd9900ea4e361058d7779e97427f8e9fb.tar.gz
qarsh-88e19aecd9900ea4e361058d7779e97427f8e9fb.tar.xz
qarsh-88e19aecd9900ea4e361058d7779e97427f8e9fb.zip
We don't need to check the heartbeat anymore when the command
has exitted and we've processed all the output.
-rw-r--r--qarsh.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/qarsh.c b/qarsh.c
index de963fb..404a7fa 100644
--- a/qarsh.c
+++ b/qarsh.c
@@ -285,16 +285,14 @@ run_remote_cmd(char *cmdline)
&pselect_sigmask);
if (nset == 0) {
+ if (cmd_finished) break;
+
if (!hbeat(qarsh_hb)) {
/* Set our return packet as NULL so we exit
* with unknown error. */
qp = NULL;
break;
}
-
- if (cmd_finished) {
- break;
- }
continue;
}