diff options
author | Nate Straz <nstraz@redhat.com> | 2008-04-08 15:24:32 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:47 -0400 |
commit | 88e19aecd9900ea4e361058d7779e97427f8e9fb (patch) | |
tree | a63cdb161efd53e7250602bb4181a79845a5c04c | |
parent | 2a5d1ac68e3c28951b9b7df25aa41dc959f74bf2 (diff) | |
download | qarsh-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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; } |