diff options
author | nicm <nicm> | 2018-03-08 08:09:10 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-03-08 08:09:10 +0000 |
commit | 19f3a5c6120c5d845eb942e67413c03c0c008a87 (patch) | |
tree | fbd4fb03833b499bfa23d77394ba5b6365e00a01 /tmux.h | |
parent | 85c48aafffd4e520eea2e598ea199e7b16f787cc (diff) | |
download | rtmux-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 'tmux.h')
-rw-r--r-- | tmux.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |