summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-10-11 07:20:16 +0000
committernicm <nicm@openbsd.org>2009-10-11 07:20:16 +0000
commit8148c7fedad364dc4223a238ec14d2426d39e40c (patch)
treee2733f69af88e0f0987e56cb6a6898faf4801569 /usr.bin/tmux/tmux.h
parentClean up by introducing a wrapper struct for mouse clicks rather than passing (diff)
downloadwireguard-openbsd-8148c7fedad364dc4223a238ec14d2426d39e40c.tar.xz
wireguard-openbsd-8148c7fedad364dc4223a238ec14d2426d39e40c.zip
Collect status from dead jobs and don't invoke the callback until both
all input (the socket is closed) and status is available.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index f3518de76eb..8e0b32866e0 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.129 2009/10/11 07:01:10 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.130 2009/10/11 07:20:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -567,6 +567,7 @@ ARRAY_DECL(keylist, int);
struct job {
char *cmd;
pid_t pid;
+ int status;
struct client *client;
@@ -577,6 +578,9 @@ struct job {
void (*freefn)(void *);
void *data;
+ int flags;
+#define JOB_DONE 0x1
+
RB_ENTRY(job) entry;
SLIST_ENTRY(job) lentry;
};