From 19f3a5c6120c5d845eb942e67413c03c0c008a87 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 8 Mar 2018 08:09:10 +0000 Subject: 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. --- tmux.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index d7b9f334..5d5be8bb 100644 --- a/tmux.h +++ b/tmux.h @@ -622,6 +622,9 @@ struct job { JOB_CLOSED } state; + int flags; +#define JOB_NOWAIT 0x1 + char *cmd; pid_t pid; int status; @@ -1649,7 +1652,7 @@ extern const struct options_table_entry options_table[]; /* job.c */ extern struct joblist all_jobs; struct job *job_run(const char *, struct session *, const char *, - job_update_cb, job_complete_cb, job_free_cb, void *); + job_update_cb, job_complete_cb, job_free_cb, void *, int); void job_free(struct job *); void job_died(struct job *, int); -- cgit