summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/format.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c
index 697dd17beee..e69d04cd541 100644
--- a/usr.bin/tmux/format.c
+++ b/usr.bin/tmux/format.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: format.c,v 1.135 2017/05/12 10:45:38 nicm Exp $ */
+/* $OpenBSD: format.c,v 1.136 2017/05/12 13:27:57 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -203,12 +203,12 @@ format_job_update(struct job *job)
free(fj->out);
fj->out = line;
- log_debug("%s: %s: %s", __func__, fj->cmd, fj->out);
+ log_debug("%s: %p %s: %s", __func__, fj, fj->cmd, fj->out);
t = time (NULL);
if (fj->status && fj->last != t) {
- TAILQ_FOREACH(c, &clients, entry)
- server_status_client(c);
+ if (fj->client != NULL)
+ server_status_client(fj->client);
fj->last = t;
}
}
@@ -233,10 +233,11 @@ format_job_complete(struct job *job)
} else
buf = line;
+ log_debug("%s: %p %s: %s", __func__, fj, fj->cmd, buf);
+
if (*buf != '\0' || !fj->updated) {
free(fj->out);
fj->out = buf;
- log_debug("%s: %s: %s", __func__, fj->cmd, fj->out);
} else
free(buf);