summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-07-11 17:06:45 +0000
committernicm <nicm@openbsd.org>2010-07-11 17:06:45 +0000
commit3c9f218d411024f3dfaff15b0b39b7a689a87c2f (patch)
tree07e2289865737116e45f40c51716451b315bb1c4 /usr.bin/tmux/tmux.h
parentbcrypt_gensalt is already declared in pwd.h (diff)
downloadwireguard-openbsd-3c9f218d411024f3dfaff15b0b39b7a689a87c2f.tar.xz
wireguard-openbsd-3c9f218d411024f3dfaff15b0b39b7a689a87c2f.zip
Return the command client return code with MSG_EXIT now that MSG_ERROR and
MSG_PRINT are unused. New clients should be compatible with old tmux servers but vice versa may print an error.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 09397cd8e58..66b952c263d 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.233 2010/06/29 05:24:49 tedu Exp $ */
+/* $OpenBSD: tmux.h,v 1.234 2010/07/11 17:06:45 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -413,6 +413,10 @@ struct msg_shell_data {
char shell[MAXPATHLEN];
};
+struct msg_exit_data {
+ int retcode;
+};
+
/* Mode key commands. */
enum mode_key_cmd {
MODEKEY_NONE,
@@ -1081,6 +1085,7 @@ struct message_entry {
struct client {
struct imsgbuf ibuf;
struct event event;
+ int retcode;
struct timeval creation_time;
struct timeval activity_time;