From ff4b4e667a64b30e4323df4b0e1637fc7ebae6c1 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 11 Oct 2009 07:20:16 +0000 Subject: Collect status from dead jobs and don't invoke the callback until both all input (the socket is closed) and status is available. --- tmux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tmux.h') 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; }; -- cgit