summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-05-22 20:59:58 +0000
committerTiago Cunha <tcunha@gmx.com>2012-05-22 20:59:58 +0000
commitbaafc17a1e9e6b622bcb36dfd096c1316dcbbfda (patch)
treea8cee0e0b6e567393d9a9552fa6df3c9e75914f7 /cmd-new-session.c
parent49b2a255b6a596f738d867ad721c476cb0174910 (diff)
Sync OpenBSD patchset 1118:
Add a helper function to send ready message.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index e7d21d3b..e8db7cc7 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -231,7 +231,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
*/
if (!detached) {
if (ctx->cmdclient != NULL) {
- server_write_client(ctx->cmdclient, MSG_READY, NULL, 0);
+ server_write_ready(ctx->cmdclient);
old_s = ctx->cmdclient->session;
if (old_s != NULL)