summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authorNicolas Viennot <nicolas@viennot.biz>2016-03-27 23:32:32 -0400
committerNicolas Viennot <nicolas@viennot.biz>2016-03-28 02:18:09 -0400
commit02694d2a966b5d1e3a5d2cbd1b76c627eb4b6ec2 (patch)
tree221dc794ec78897473baa62c9406a4f57e45b53c /cmd-queue.c
parentc88870b0a38acdfb598057ec344cc3d5e3991933 (diff)
Send commands with their arguments in an array
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index fad9760b..f08a724e 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -201,12 +201,13 @@ cmdq_continue_one(struct cmd_q *cmdq)
char *tmp;
int flags = !!(cmd->flags & CMD_CONTROL);
- tmp = cmd_print(cmd);
- log_debug("cmdq %p: %s", cmdq, tmp);
#ifdef TMATE
if (tmate_should_replicate_cmd(cmd->entry))
- tmate_exec_cmd(tmp);
+ tmate_exec_cmd(cmd);
#endif
+
+ tmp = cmd_print(cmd);
+ log_debug("cmdq %p: %s", cmdq, tmp);
free(tmp);
cmdq->time = time(NULL);