diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-11 07:20:17 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-10-11 07:20:17 +0000 |
commit | f1fc569bca4807c7824360612bab64a0d7eb14c7 (patch) | |
tree | d12132841b8e59be007f058ceb3f1118fdb656fb /usr.bin/tmux/tmux.h | |
parent | 3349c90a7d8ef703d35563da2596b500032a7d54 (diff) |
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.h | 6 |
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; }; |