aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authornicm <nicm>2018-03-08 08:09:10 +0000
committernicm <nicm>2018-03-08 08:09:10 +0000
commit19f3a5c6120c5d845eb942e67413c03c0c008a87 (patch)
treefbd4fb03833b499bfa23d77394ba5b6365e00a01 /format.c
parent85c48aafffd4e520eea2e598ea199e7b16f787cc (diff)
downloadrtmux-19f3a5c6120c5d845eb942e67413c03c0c008a87.tar.gz
rtmux-19f3a5c6120c5d845eb942e67413c03c0c008a87.tar.bz2
rtmux-19f3a5c6120c5d845eb942e67413c03c0c008a87.zip
Add a missing client-detached hook when the server shuts down, and do
not exit until jobs started from run-shell/if-shell have finished (add a job flags member and a flag to indicate other jobs). GitHub issue 1245.
Diffstat (limited to 'format.c')
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index 0cd3503c..bf76fcf0 100644
--- a/format.c
+++ b/format.c
@@ -295,7 +295,7 @@ format_job_get(struct format_tree *ft, const char *cmd)
t = time(NULL);
if (fj->job == NULL && (force || fj->last != t)) {
fj->job = job_run(expanded, NULL, NULL, format_job_update,
- format_job_complete, NULL, fj);
+ format_job_complete, NULL, fj, JOB_NOWAIT);
if (fj->job == NULL) {
free(fj->out);
xasprintf(&fj->out, "<'%s' didn't start>", fj->cmd);