retcode -> retval for exit message.

This commit is contained in:
Nicholas Marriott 2013-10-06 00:18:00 +01:00
parent 01a4752503
commit 3fba377ddd
3 changed files with 4 additions and 3 deletions

View File

@ -143,7 +143,7 @@ cmdq_error(struct cmd_q *cmdq, const char *fmt, ...)
evbuffer_add(c->stderr_data, "\n", 1);
server_push_stderr(c);
c->retcode = 1;
c->retval = 1;
} else {
*msg = toupper((u_char) *msg);
status_message_set(c, "%s", msg);

View File

@ -707,7 +707,7 @@ server_client_check_exit(struct client *c)
if (EVBUFFER_LENGTH(c->stderr_data) != 0)
return;
exitdata.retcode = c->retcode;
exitdata.retcode = c->retval;
server_write_client(c, MSG_EXIT, &exitdata, sizeof exitdata);
c->flags &= ~CLIENT_EXIT;

3
tmux.h
View File

@ -1295,8 +1295,9 @@ RB_HEAD(status_out_tree, status_out);
/* Client connection. */
struct client {
struct imsgbuf ibuf;
struct event event;
int retcode;
int retval;
struct timeval creation_time;
struct timeval activity_time;