From 16706ee4a63d182693505edc64d4648e39691c3b Mon Sep 17 00:00:00 2001 From: Nate Straz Date: Tue, 8 Jul 2008 15:00:32 +0000 Subject: Make sure qarsh waits for all output from the remote host. --- qarsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qarsh.c') 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 -- cgit