Sync OpenBSD patchset 1118:

Add a helper function to send ready message.
This commit is contained in:
Tiago Cunha
2012-05-22 20:59:58 +00:00
parent 49b2a255b6
commit baafc17a1e
4 changed files with 9 additions and 2 deletions

View File

@ -94,7 +94,7 @@ cmd_attach_session_exec(struct cmd *self, struct cmd_ctx *ctx)
ctx->cmdclient->session = s;
notify_attached_session_changed(ctx->cmdclient);
session_update_activity(s);
server_write_client(ctx->cmdclient, MSG_READY, NULL, 0);
server_write_ready(ctx->cmdclient);
update = options_get_string(&s->options, "update-environment");
environ_update(update, &ctx->cmdclient->environ, &s->environ);