Sync OpenBSD patchset 734:

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.
This commit is contained in:
Tiago Cunha
2010-07-17 14:36:41 +00:00
parent 46f27eab22
commit ad6a528f61
5 changed files with 39 additions and 20 deletions

7
tmux.h
View File

@ -1,4 +1,4 @@
/* $Id: tmux.h,v 1.569 2010-07-02 02:56:07 tcunha Exp $ */
/* $Id: tmux.h,v 1.570 2010-07-17 14:36:41 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -412,6 +412,10 @@ struct msg_shell_data {
char shell[MAXPATHLEN];
};
struct msg_exit_data {
int retcode;
};
/* Mode key commands. */
enum mode_key_cmd {
MODEKEY_NONE,
@ -1080,6 +1084,7 @@ struct message_entry {
struct client {
struct imsgbuf ibuf;
struct event event;
int retcode;
struct timeval creation_time;
struct timeval activity_time;