summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-03-08 08:09:10 +0000
committernicm <nicm@openbsd.org>2018-03-08 08:09:10 +0000
commit49505a585a1f33133f638cc437963becee77e333 (patch)
tree023e8600ea7e2b5e3101ff04bfdf1d73c122a236 /usr.bin/tmux/tmux.h
parentImplement the VMWare vmbackup protocol using vfs_stall(). This lets you (diff)
downloadwireguard-openbsd-49505a585a1f33133f638cc437963becee77e333.tar.xz
wireguard-openbsd-49505a585a1f33133f638cc437963becee77e333.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 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h7
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);