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:
Nicholas Marriott
2010-07-11 17:06:45 +00:00
parent b4b9b831ee
commit b9c873cdaa
5 changed files with 34 additions and 15 deletions

5
tmux.h
View File

@ -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;