aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-10-12 00:21:08 +0000
committerTiago Cunha <tcunha@gmx.com>2009-10-12 00:21:08 +0000
commit1b03bc2404a0892b9434b43603fc43282e6e36de (patch)
treed3f1d878151a512a252175edf09f6d13528efd98 /tmux.h
parentb26ea8462ec0bb7d3d5cbeed115f6f4bbd4e1072 (diff)
downloadrtmux-1b03bc2404a0892b9434b43603fc43282e6e36de.tar.gz
rtmux-1b03bc2404a0892b9434b43603fc43282e6e36de.tar.bz2
rtmux-1b03bc2404a0892b9434b43603fc43282e6e36de.zip
Sync OpenBSD patchset 382:
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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index 75b8cfc9..276c2808 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1,4 +1,4 @@
-/* $Id: tmux.h,v 1.467 2009-10-12 00:18:19 tcunha Exp $ */
+/* $Id: tmux.h,v 1.468 2009-10-12 00:21:08 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -565,6 +565,7 @@ ARRAY_DECL(keylist, int);
struct job {
char *cmd;
pid_t pid;
+ int status;
struct client *client;
@@ -575,6 +576,9 @@ struct job {
void (*freefn)(void *);
void *data;
+ int flags;
+#define JOB_DONE 0x1
+
RB_ENTRY(job) entry;
SLIST_ENTRY(job) lentry;
};