diff options
author | Nicolas Viennot <nicolas@viennot.biz> | 2016-03-27 23:32:32 -0400 |
---|---|---|
committer | Nicolas Viennot <nicolas@viennot.biz> | 2016-03-28 02:18:09 -0400 |
commit | 02694d2a966b5d1e3a5d2cbd1b76c627eb4b6ec2 (patch) | |
tree | 221dc794ec78897473baa62c9406a4f57e45b53c /cmd-queue.c | |
parent | c88870b0a38acdfb598057ec344cc3d5e3991933 (diff) |
Send commands with their arguments in an array
Diffstat (limited to 'cmd-queue.c')
-rw-r--r-- | cmd-queue.c | 7 |
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); |