mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
retcode -> retval for exit message.
This commit is contained in:
parent
01a4752503
commit
3fba377ddd
@ -143,7 +143,7 @@ cmdq_error(struct cmd_q *cmdq, const char *fmt, ...)
|
|||||||
evbuffer_add(c->stderr_data, "\n", 1);
|
evbuffer_add(c->stderr_data, "\n", 1);
|
||||||
|
|
||||||
server_push_stderr(c);
|
server_push_stderr(c);
|
||||||
c->retcode = 1;
|
c->retval = 1;
|
||||||
} else {
|
} else {
|
||||||
*msg = toupper((u_char) *msg);
|
*msg = toupper((u_char) *msg);
|
||||||
status_message_set(c, "%s", msg);
|
status_message_set(c, "%s", msg);
|
||||||
|
@ -707,7 +707,7 @@ server_client_check_exit(struct client *c)
|
|||||||
if (EVBUFFER_LENGTH(c->stderr_data) != 0)
|
if (EVBUFFER_LENGTH(c->stderr_data) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
exitdata.retcode = c->retcode;
|
exitdata.retcode = c->retval;
|
||||||
server_write_client(c, MSG_EXIT, &exitdata, sizeof exitdata);
|
server_write_client(c, MSG_EXIT, &exitdata, sizeof exitdata);
|
||||||
|
|
||||||
c->flags &= ~CLIENT_EXIT;
|
c->flags &= ~CLIENT_EXIT;
|
||||||
|
3
tmux.h
3
tmux.h
@ -1295,8 +1295,9 @@ RB_HEAD(status_out_tree, status_out);
|
|||||||
/* Client connection. */
|
/* Client connection. */
|
||||||
struct client {
|
struct client {
|
||||||
struct imsgbuf ibuf;
|
struct imsgbuf ibuf;
|
||||||
|
|
||||||
struct event event;
|
struct event event;
|
||||||
int retcode;
|
int retval;
|
||||||
|
|
||||||
struct timeval creation_time;
|
struct timeval creation_time;
|
||||||
struct timeval activity_time;
|
struct timeval activity_time;
|
||||||
|
Loading…
Reference in New Issue
Block a user