diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-03-08 08:09:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2018-03-08 08:09:11 +0000 |
commit | e87803d86d8cdec8de078a2eeee905149dfa1f70 (patch) | |
tree | 7f0585a1f3e2af7ca0dd745da10443cc846eefbb /usr.bin/tmux/tmux.h | |
parent | 37d8a41c4989cb786999f0e17af7bb32db8cfdcc (diff) |
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 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index f8d2c32bccc..4647d869612 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.820 2018/02/28 08:55:44 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.821 2018/03/08 08:09:10 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |