From 88e19aecd9900ea4e361058d7779e97427f8e9fb Mon Sep 17 00:00:00 2001 From: Nate Straz Date: Tue, 8 Apr 2008 15:24:32 +0000 Subject: We don't need to check the heartbeat anymore when the command has exitted and we've processed all the output. --- qarsh.c | 6 ++---- 1 file 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; } -- cgit