aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-11 07:20:16 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-11 07:20:16 +0000
commitff4b4e667a64b30e4323df4b0e1637fc7ebae6c1 (patch)
tree23eecd0ffd3bf3f5a954b484bcfbe348e29ab037 /tmux.h
parent4bc0f6e7e9eac73f7a1221ed4c2854d12eb1cf7e (diff)
downloadrtmux-ff4b4e667a64b30e4323df4b0e1637fc7ebae6c1.tar.gz
rtmux-ff4b4e667a64b30e4323df4b0e1637fc7ebae6c1.tar.bz2
rtmux-ff4b4e667a64b30e4323df4b0e1637fc7ebae6c1.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 'tmux.h')
-rw-r--r--tmux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index 71b307fb..a975dca3 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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;
};