version 1.7, 2009/08/03 14:10:54 |
version 1.8, 2009/08/08 21:52:43 |
|
|
const struct cmd_entry cmd_attach_session_entry = { |
const struct cmd_entry cmd_attach_session_entry = { |
"attach-session", "attach", |
"attach-session", "attach", |
"[-d] " CMD_TARGET_SESSION_USAGE, |
"[-d] " CMD_TARGET_SESSION_USAGE, |
CMD_CANTNEST|CMD_STARTSERVER, CMD_CHFLAG('d'), |
CMD_CANTNEST|CMD_STARTSERVER|CMD_SENDENVIRON, CMD_CHFLAG('d'), |
cmd_target_init, |
cmd_target_init, |
cmd_target_parse, |
cmd_target_parse, |
cmd_attach_session_exec, |
cmd_attach_session_exec, |
|
|
struct cmd_target_data *data = self->data; |
struct cmd_target_data *data = self->data; |
struct session *s; |
struct session *s; |
struct client *c; |
struct client *c; |
|
const char *update; |
char *overrides, *cause; |
char *overrides, *cause; |
u_int i; |
u_int i; |
|
|
|
|
|
|
ctx->cmdclient->session = s; |
ctx->cmdclient->session = s; |
server_write_client(ctx->cmdclient, MSG_READY, NULL, 0); |
server_write_client(ctx->cmdclient, MSG_READY, NULL, 0); |
|
|
|
update = options_get_string(&s->options, "update-environment"); |
|
environ_update(update, &ctx->cmdclient->environ, &s->environ); |
|
|
server_redraw_client(ctx->cmdclient); |
server_redraw_client(ctx->cmdclient); |
} |
} |
recalculate_sizes(); |
recalculate_sizes(); |