From f1fc569bca4807c7824360612bab64a0d7eb14c7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 11 Oct 2009 07:20:17 +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. --- usr.bin/tmux/tmux.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux/tmux.h') 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 @@ -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 v1.2.3